{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "5a1af5c8-b759-41c8-b813-62b4512f1276",
   "metadata": {},
   "source": [
    "# GenAI Career Assistant Agent – Your Ultimate Guide to a Career in Generative AI!🚀\n",
    "<a href=\"https://colab.research.google.com/drive/19lYWHVgRSSyY84HW3WkwJ9OFAA25T8KW?usp=sharing\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>\n",
    "## Overview\n",
    "Meet the GenAI Career Assistant—an AI-powered mentor designed to simplify and support your journey in Generative AI learning, Resume preparation, Interview assistant and job hunting.\n",
    "#### Tech Stack\n",
    "I have used all free Open source.<br>\n",
    "Langchain,Langgraph, Gemini LLM, DuckDuckGoSearchResult\n",
    "\n",
    "## Motivation\n",
    "As GenAI rapidly evolves, more people are eager to learn it for career advancement or transition. However, navigating the vast resources on the internet and platforms like YouTube can be overwhelming, with long videos and scattered, outdated materials making it hard to know where to begin in this busy life. Even using ChatGPT for coding help often yields deprecated code, as GenAI packages and methods—such as LangChain, LlamaIndex, and Hugging Face—are updated frequently.\n",
    "\n",
    "### Key Features\n",
    "\n",
    "1. **Learning & Content Creation:**\n",
    "   - Offers tailored learning pathways in GenAI, covering key topics and skills.\n",
    "   - Assists users in creating tutorials, blogs, and posts based on their interests or queries.\n",
    "2. **Q&A Support:**\n",
    "   - Provides on-demand Q&A sessions for users needing guidance on concepts or coding issues.\n",
    "3. **Resume Building & Review:**\n",
    "   - One-on-one resume consultations and guidance.\n",
    "   - Crafts personalized, market-relevant resumes optimized for current job trends.\n",
    "4. **Interview Preparation:**\n",
    "   - Hosts Q&A sessions on common and technical interview questions.\n",
    "   - Simulates real interview scenarios and conducts mock interviews.\n",
    "5. **Job Search Assistance:**\n",
    "   - Guides users through the job search process, offering tailored insights and support. \n",
    "With the GenAI Career Assistant, your journey to a career in Generative AI becomes organized, personalized, and efficient!\n",
    "\n",
    "<img src=\"https://i.imghippo.com/files/xrJV7042k.png\" alt=\"agent\" border=\"0\" style=\"height:20%;width:90%\">\n",
    "\n",
    "## Key Components\n",
    "1. **State Management**: Using TypedDict to define and manage the state of each customer interaction.\n",
    "2. **Query Categorization**: Classifying users queries into Learning, Resume Preparation, Interview or Job Search.\n",
    "3. **Sub Categorization**: Learning(Tutorial, Q&A), Interview(Interview prep,Mock interview).\n",
    "4. **Response Generation**: Creating appropriate responses based on the query category. Create .md files for Tutorial Blogs, Resume, Mock interview etc.\n",
    "6. **Workflow Graph**: Utilizing LangGraph to create a flexible and extensible workflow.\n",
    "\n",
    "## Method Details\n",
    "1. **Initialization**: Set up the environment and import necessary libraries.\n",
    "2. **State Definition**: Create a structure to hold query information, category, sub-category, and response.\n",
    "3. **Node Functions**: Implement separate functions for categorization, and response generation.\n",
    "4. **Graph Construction**: Use StateGraph to define the workflow, adding nodes and edges to represent the support process.\n",
    "5. **Conditional Routing**: Implement logic to route queries based on their category and sub- category.\n",
    "6. **Workflow Compilation**: Compile the graph into an executable application.\n",
    "7. **Execution**: Process users queries through the workflow and retrieve results."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f59364b3-4120-473c-8ffd-b2492a3307bd",
   "metadata": {},
   "source": [
    "## Conclusion\n",
    "The GenAI Career Assistant is more than just a tool; it’s a comprehensive, personalized mentor designed to help you thrive in the rapidly evolving field of Generative AI. From mastering key concepts and building a strong resume to preparing for interviews and navigating the job market, this assistant equips you with everything you need to achieve your career goals. With GenAI Career Assistant by your side, your path to a successful Generative AI career becomes clearer, more manageable, and achievable. Embrace the future of AI with confidence and step into your dream role!\n",
    "## Future Enhancement\n",
    "- **Knowledge Base**: Incorporate a resource-rich library with curated links to courses, tutorials, and articles for comprehensive learning support.\n",
    "- **Multi-Domain Customization**: Expand beyond Generative AI, allowing users to tailor the assistant to any career path, creating a versatile \"Dream Job Assistant\"\n",
    "- **Advanced Job Search Tools**: Include an automated job application tracker, enhanced networking features, and guidance on global job opportunities and visas."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8c313380-e8dd-4c39-b4e9-a520aa07f1c6",
   "metadata": {},
   "source": [
    "### Before starting please install the below packages"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "6e45f49d-cdc2-4b2a-a530-87adc9489e80",
   "metadata": {},
   "outputs": [],
   "source": [
    "pip install langchain==0.3.7 langchain-community==0.3.7 langchain_google_genai==2.0.4 duckduckgo_search==6.3.4 langgraph==0.2.48 python-dotenv"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "dd7fd4d2-e9f2-420b-9ae3-813d6b99142d",
   "metadata": {},
   "source": [
    "### Here we will import necessary packages:\n",
    "`langgraph`, `langchain_core`, `langchain_google_genai` - These are important packages for our project.\n",
    "\n",
    "This code imports necessary libraries to create and interact with a generative AI model from Google. It loads environment variables to securely set up an API key, then configures the model `gemini-1.5-flash` with specific parameters like verbosity (for detailed logs) and temperature (for response creativity). The AI model is instantiated with the API key to enable its use in generating responses."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "553b016a-35eb-435d-bb44-7fc70901f884",
   "metadata": {},
   "outputs": [],
   "source": [
    "from typing import Dict, TypedDict\n",
    "from langgraph.graph import StateGraph, END, START #Importing StateGraph, END, and START from langgraph.graph to define and manage state transitions within a conversational or generative AI workflow.\n",
    "from langchain_core.prompts import ChatPromptTemplate\n",
    "from langchain_google_genai import ChatGoogleGenerativeAI\n",
    "\n",
    "from IPython.display import display, Image, Markdown\n",
    "from langchain_core.runnables.graph import MermaidDrawMethod # to visualize the graph of langgraph node and edges\n",
    "from dotenv import load_dotenv\n",
    "import os\n",
    "\n",
    "# Load environment variables from a .env file to access sensitive information\n",
    "load_dotenv()\n",
    "\n",
    "# Set the Gemini API key for authentication with Google Generative AI services\n",
    "os.environ[\"GOOGLE_API_KEY\"] = os.getenv('GOOGLE_API_KEY')\n",
    "\n",
    "# Instantiate a chat model using Google's Gemini-1.5-flash with specified configurations\n",
    "# - verbose=True enables detailed output logs for debugging\n",
    "# - temperature=0.5 controls the creativity level in responses (lower values make responses more deterministic)\n",
    "llm = ChatGoogleGenerativeAI(model=\"gemini-1.5-flash\",\n",
    "                             verbose=True,\n",
    "                             temperature=0.5,\n",
    "                             google_api_key=os.getenv(\"GOOGLE_API_KEY\"))\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "87dc5e74-70f8-4bda-93e0-a734c223c14b",
   "metadata": {},
   "source": [
    "### Defining a State class using TypedDict to specify the structure of state data in the workflow.\n",
    "- `query`: a string representing the user's input or question.\n",
    "- `category`: a string indicating the category or type of the query.\n",
    "- `response`: a string holding the AI model's generated response to the query.\n",
    "This TypedDict ensures each state has a consistent data format for easier management and readability."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "99f28752",
   "metadata": {},
   "outputs": [],
   "source": [
    "class State(TypedDict):\n",
    "    query: str\n",
    "    category: str\n",
    "    response: str"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "bebd99d3-4a97-44dd-bb4f-5537f9099f0a",
   "metadata": {},
   "source": [
    "### First we are defining utilities we will require further\n",
    "<a href=\"https://python.langchain.com/docs/how_to/trim_messages/\"> 👉 trim_messages <a>\n",
    "\n",
    "1. **`trim_conversation` Function**: This function limits the conversation history to the latest messages (up to 10), ensuring only recent and relevant messages are retained in the promp\n",
    "  \n",
    "2. **`save_file` Function**: Saves data into a uniquely timestamped Markdown file in the `Agent_output` folder, creating the folder if it doesn't exst.\n",
    "\n",
    "3. **`show_md_file` Function**: Reads and displays the content of a Markdown file within the notebook, rendering it in Markdown form readabilityblity.\n",
    "lity.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "2e70488f",
   "metadata": {},
   "outputs": [],
   "source": [
    "# Importing message types and utilities from langchain_core:\n",
    "# AIMessage, HumanMessage, SystemMessage: Define different types of messages in a conversation.\n",
    "# trim_messages: Utility to manage and limit the number of messages in a conversation history.\n",
    "from langchain_core.messages import AIMessage, HumanMessage, SystemMessage, trim_messages\n",
    "\n",
    "def trim_conversation(prompt):\n",
    "    \"\"\"Trims conversation history to retain only the latest messages within the limit.\"\"\"\n",
    "    max_messages = 10  # Limit the conversation history to the latest 10 messages\n",
    "    return trim_messages(\n",
    "        prompt,\n",
    "        max_tokens=max_messages,  # Specifies the maximum number of messages allowed\n",
    "        strategy=\"last\",  # Trimming strategy to keep the last messages\n",
    "        token_counter=len,  # Counts tokens/messages using the length of the list\n",
    "        start_on=\"human\",  # Start trimming when reaching the first human message\n",
    "        include_system=True,  # Include system messages in the trimmed history\n",
    "        allow_partial=False,  # Ensures only whole messages are included\n",
    "    )\n",
    "\n",
    "import os\n",
    "from datetime import datetime\n",
    "\n",
    "def save_file(data, filename):\n",
    "    \"\"\"Saves data to a markdown file with a timestamped filename.\"\"\"\n",
    "    folder_name = \"Agent_output\"  # Folder to store output files\n",
    "    os.makedirs(folder_name, exist_ok=True)  # Creates the folder if it doesn't exist\n",
    "    \n",
    "    # Generate a timestamped filename for uniqueness\n",
    "    timestamp = datetime.now().strftime(\"%Y%m%d%H%M%S\")  # Format: YYYYMMDDHHMMSS\n",
    "    filename = f\"{filename}_{timestamp}.md\"\n",
    "    \n",
    "    # Define the full file path\n",
    "    file_path = os.path.join(folder_name, filename)\n",
    "    \n",
    "    # Save the data to the file in the specified path\n",
    "    with open(file_path, \"w\", encoding=\"utf-8\") as file:\n",
    "        file.write(data)\n",
    "        print(f\"File '{file_path}' created successfully.\")\n",
    "    \n",
    "    # Return the full path of the saved file\n",
    "    return file_path\n",
    "\n",
    "def show_md_file(file_path):\n",
    "    \"\"\"Displays the content of a markdown file as Markdown in the notebook.\"\"\"\n",
    "    with open(file_path, 'r', encoding='utf-8') as file:\n",
    "        content = file.read()\n",
    "    \n",
    "    # Render the content in Markdown format within the notebook\n",
    "    display(Markdown(content))\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e72afb0e-e9e0-435a-8017-b59c79dbc281",
   "metadata": {},
   "source": [
    "#### Now We will create class which will be Responsible for Learning(Tutorial and Q&A sessions)\n",
    "- Checkout here:\n",
    "<a href=\"https://python.langchain.com/v0.1/docs/modules/agents/agent_types/tool_calling/\">👉 create_tool_calling_agent <a>\n",
    "<a href=\"https://python.langchain.com/docs/how_to/agent_executor/\">👉 AgentExecutor <a>\n",
    "<a href=\"https://python.langchain.com/docs/integrations/tools/ddg/\">👉 DuckDuckGoSearchResults <a>\n",
    "\n",
    "1. **Imports**: \n",
    "   - `ChatPromptTemplate` and `MessagesPlaceholder` from `langchain_core.prompts` help structure prompts.\n",
    "   - `DuckDuckGoSearchResults` from `langchain_community.tools` provides web search capability.\n",
    "   - `create_tool_calling_agent` and `AgentExecutor` manage agent creation and execution.\n",
    "\n",
    "2. **`LearningResourceAgent` Class**:\n",
    "   - **`__init__` Method**: Initializes the chat model (`gemini-1.5-pro`), prompt, and tools (like DuckDuckGo search).\n",
    "   - **`TutorialAgent` Method**: Runs a search-based tutorial by invoking the model and saving the output as a timestamped Markdown file for review.\n",
    "   - **`QueryBot` Method**: Conducts a Q&A loop with the user. The conversation is trimmed as it grows, and responses are generated based on updated inputs, with the user able to type 'exit' to end the session.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "068e34b5-596b-4eb3-b1ae-89281b216284",
   "metadata": {},
   "outputs": [],
   "source": [
    "from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder\n",
    "from langchain_community.tools import DuckDuckGoSearchResults #searching tools\n",
    "from langchain.agents import create_tool_calling_agent\n",
    "from langchain.agents import AgentExecutor\n",
    "\n",
    "class LearningResourceAgent:\n",
    "    def __init__(self, prompt):\n",
    "        # Initialize the chat model, prompt template, and search tools\n",
    "        self.model = ChatGoogleGenerativeAI(model=\"gemini-1.5-pro\")\n",
    "        self.prompt = prompt\n",
    "        self.tools = [DuckDuckGoSearchResults()]\n",
    "\n",
    "    def TutorialAgent(self, user_input):\n",
    "        # Set up an agent with tool access and execute a tutorial-style response\n",
    "        agent = create_tool_calling_agent(self.model, self.tools, self.prompt)\n",
    "        agent_executor = AgentExecutor(agent=agent, tools=self.tools, verbose=True)\n",
    "        response = agent_executor.invoke({\"input\": user_input})\n",
    "        \n",
    "        # Save and display the response as a markdown file\n",
    "        path = save_file(str(response.get('output')).replace(\"```markdown\", \"\").strip(), 'Tutorial')\n",
    "        print(f\"Tutorial saved to {path}\")\n",
    "        return path\n",
    "\n",
    "    def QueryBot(self, user_input):\n",
    "        # Initiates a Q&A loop for continuous interaction with the user\n",
    "        print(\"\\nStarting the Q&A session. Type 'exit' to end the session.\\n\")\n",
    "        record_QA_session = []\n",
    "        record_QA_session.append('User Query: %s \\n' % user_input)\n",
    "        self.prompt.append(HumanMessage(content=user_input))\n",
    "        while True:\n",
    "            # Trim conversation history to maintain prompt size\n",
    "            self.prompt = trim_conversation(self.prompt)\n",
    "            \n",
    "            # Generate a response from the AI model and update conversation history\n",
    "            response = self.model.invoke(self.prompt)\n",
    "            record_QA_session.append('\\nExpert Response: %s \\n' % response.content)\n",
    "            \n",
    "            self.prompt.append(AIMessage(content=response.content))\n",
    "            \n",
    "            # Display the AI's response and prompt for user input\n",
    "            print('*' * 50 + 'AGENT' + '*' * 50)\n",
    "            print(\"\\nEXPERT AGENT RESPONSE:\", response.content)\n",
    "            \n",
    "            print('*' * 50 + 'USER' + '*' * 50)\n",
    "            user_input = input(\"\\nYOUR QUERY: \")\n",
    "            record_QA_session.append('\\nUser Query: %s \\n' % response.content)\n",
    "            self.prompt.append(HumanMessage(content=user_input))\n",
    "            \n",
    "            # Exit the Q&A loop if the user types 'exit'\n",
    "            if user_input.lower() == \"exit\":\n",
    "                print(\"Ending the chat session.\")\n",
    "                path = save_file(''.join(record_QA_session),'Q&A_Doubt_Session')\n",
    "                print(f\"Q&A Session saved to {path}\")\n",
    "                return path\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c580c6d7-3872-4d86-bbff-ddfc2159f382",
   "metadata": {},
   "source": [
    "### Here we are creating Class for Interview handling(Interview Question Prep and MockInterview)\n",
    "\n",
    "1. **`InterviewAgent` Class**:\n",
    "   - **`__init__` Method**: Initializes the model (`gemini-1.5-flash`), prompt, tools (such as DuckDuckGo search), and creates an agent executor with error handling enabled.\n",
    "\n",
    "2. **`Interview_questions` Method**:\n",
    "   - Runs a loop for handling interview questions from the user, generating responses using the agent executor. \n",
    "   - Responses are stored in `questions_bank` for later reference. The conversation ends when the user types \"exit,\" and the chat history is saved as a Markdown file.\n",
    "\n",
    "3. **`Mock_Interview` Method**:\n",
    "   - Simulates a mock interview by initiating a conversation loop. Responses from the model are displayed as \"Interviewer\" messages, and user inputs as \"Candidate\" messages.\n",
    "   - The conversation is trimmed as it grows to maintain prompt size. The interview session ends when the user types \"exit,\" returning a record of the entire interview.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "7e4f3d3c",
   "metadata": {},
   "outputs": [],
   "source": [
    "class InterviewAgent:\n",
    "    def __init__(self, prompt):\n",
    "        # Initialize the chat model, prompt template, and search tool for use in the agent\n",
    "        self.model = ChatGoogleGenerativeAI(model=\"gemini-1.5-flash\")\n",
    "        self.prompt = prompt\n",
    "        self.tools = [DuckDuckGoSearchResults()]  # Web search tool for retrieving additional information\n",
    "\n",
    "    def Interview_questions(self, user_input):\n",
    "        # Holds the conversation history and cumulative questions and answers\n",
    "        chat_history = []\n",
    "        questions_bank = ''\n",
    "        # Create an agent executor with tool access and enable verbose output and error handling\n",
    "        self.agent = create_tool_calling_agent(self.model, self.tools, self.prompt)\n",
    "        self.agent_executor = AgentExecutor(agent=self.agent, tools=self.tools, verbose=True, handle_parsing_errors=True)\n",
    "        while True:\n",
    "            print(\"\\nStarting the Interview question preparation. Type 'exit' to end the session.\\n\")\n",
    "            if user_input.lower() == \"exit\":\n",
    "                print(\"Ending the conversation. Goodbye!\")\n",
    "                break\n",
    "            \n",
    "            # Generate a response to the user input and add it to questions_bank\n",
    "            response = self.agent_executor.invoke({\"input\": user_input, \"chat_history\": chat_history})\n",
    "            questions_bank += str(response.get('output')).replace(\"```markdown\", \"\").strip() + \"\\n\"\n",
    "            \n",
    "            # Update chat history with user input and AI response, limiting history to the last 10 messages\n",
    "            chat_history.extend([HumanMessage(content=user_input), response[\"output\"]])\n",
    "            if len(chat_history) > 10:\n",
    "                chat_history = chat_history[-10:]  # Keep only the last 10 messages\n",
    "            \n",
    "            # Get the next input from the user to continue the conversation\n",
    "            user_input = input(\"You: \")\n",
    "        \n",
    "        # Save the entire question-response history to a markdown file and display it\n",
    "        path = save_file(questions_bank, 'Interview_questions')\n",
    "        print(f\"Interviews question saved to {path}\")\n",
    "        return path\n",
    "\n",
    "    def Mock_Interview(self):\n",
    "        # Start a simulated mock interview session\n",
    "        print(\"\\nStarting the mock interview. Type 'exit' to end the session.\\n\")\n",
    "        \n",
    "        # Initialize with a starting message and store interview records\n",
    "        initial_message = 'I am ready for the interview.\\n'\n",
    "        interview_record = []\n",
    "        interview_record.append('Candidate: %s \\n' % initial_message)\n",
    "        self.prompt.append(HumanMessage(content=initial_message))\n",
    "        \n",
    "        while True:\n",
    "            # Trim conversation history if necessary to maintain prompt size\n",
    "            self.prompt = trim_conversation(self.prompt)\n",
    "            \n",
    "            # Generate a response using the chat model\n",
    "            response = self.model.invoke(self.prompt)\n",
    "            \n",
    "            # Add AI response to the conversation history\n",
    "            self.prompt.append(AIMessage(content=response.content))\n",
    "            \n",
    "            # Output the AI's response as the \"Interviewer\"\n",
    "            print(\"\\nInterviewer:\", response.content)\n",
    "            interview_record.append('\\nInterviewer: %s \\n' % response.content)\n",
    "            \n",
    "            # Get the user's response as \"Candidate\" input\n",
    "            user_input = input(\"\\nCandidate: \")\n",
    "            interview_record.append('\\nCandidate: %s \\n' % user_input)\n",
    "            \n",
    "            # Add user input to the conversation history\n",
    "            self.prompt.append(HumanMessage(content=user_input))\n",
    "            \n",
    "            # End the interview if the user types \"exit\"\n",
    "            if user_input.lower() == \"exit\":\n",
    "                print(\"Ending the interview session.\")\n",
    "                path = save_file(''.join(interview_record),'Mock_Interview')\n",
    "                print(f\"Mock Interview saved to {path}\")\n",
    "                return path\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "218d1e00-3b9b-44b0-a740-0f6194dec1cb",
   "metadata": {},
   "source": [
    "### Now we will create class for Resume Making which will handle creating resume by chating with user\n",
    "\n",
    "1. **`ResumeMaker` Class**:\n",
    "   - **`__init__` Method**: Initializes the chat model (`gemini-1.5-pro`), prompt, and tools (like DuckDuckGo search). Sets up an agent executor with tool access, verbose output, and error handling for generating resume content.\n",
    "\n",
    "2. **`Create_Resume` Method**:\n",
    "   - Engages in a conversational loop to gather user input and generate resume content based on responses from the agent.\n",
    "   - The conversation history (`chat_history`) retains only the latest 10 messages to manage context size.\n",
    "   - The conversation loop ends when the user types \"exit,\" at which point the final output is saved as a timestamped Markdown file titled \"Resume,\" and the file path is displayed.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "8e520d96",
   "metadata": {},
   "outputs": [],
   "source": [
    "class ResumeMaker:\n",
    "    def __init__(self, prompt):\n",
    "        # Initialize the chat model, prompt template, and search tool for resume creation\n",
    "        self.model = ChatGoogleGenerativeAI(model=\"gemini-1.5-pro\")\n",
    "        self.prompt = prompt\n",
    "        self.tools = [DuckDuckGoSearchResults()]  # Search tool to gather additional information if needed\n",
    "        # Create an agent executor with tool access, enabling verbose output and error handling\n",
    "        self.agent = create_tool_calling_agent(self.model, self.tools, self.prompt)\n",
    "        self.agent_executor = AgentExecutor(agent=self.agent, tools=self.tools, verbose=True, handle_parsing_errors=True)\n",
    "\n",
    "    def Create_Resume(self, user_input):\n",
    "        # Maintain chat history for the resume creation conversation\n",
    "        chat_history = []\n",
    "        while True:\n",
    "            print(\"\\nStarting the Resume create session. Type 'exit' to end the session.\\n\")\n",
    "            if user_input.lower() == \"exit\":\n",
    "                print(\"Ending the conversation. Goodbye!\")\n",
    "                break\n",
    "            \n",
    "            # Generate a response to user input using the agent and add it to the chat history\n",
    "            response = self.agent_executor.invoke({\"input\": user_input, \"chat_history\": chat_history})\n",
    "            chat_history.extend([HumanMessage(content=user_input), response[\"output\"]])\n",
    "            \n",
    "            # Limit the chat history to the last 10 messages\n",
    "            if len(chat_history) > 10:\n",
    "                chat_history = chat_history[-10:]\n",
    "            \n",
    "            # Prompt for the next user input to continue the resume creation conversation\n",
    "            user_input = input(\"You: \")\n",
    "        \n",
    "        # Save the final output as a markdown file and return the file path\n",
    "        path = save_file(str(response.get('output')).replace(\"```markdown\", \"\").strip(), 'Resume')\n",
    "        print(f\"Resume saved to {path}\")\n",
    "        return path\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "de3f2764-2e61-46c0-ac66-05b278d9ae0d",
   "metadata": {},
   "source": [
    "### Code Explanation\n",
    "\n",
    "1. **`JobSearch` Class**:\n",
    "   - **`__init__` Method**: Initializes the chat model (`gemini-1.5-pro`), prompt, and search tools for job search assistance. Sets up an agent executor to handle conversation flow with verbose output and error handling.\n",
    "\n",
    "2. **`find_jobs` Method**:\n",
    "   - Conducts a conversational loop to assist users with job search queries, using the agent's responses based on user input.\n",
    "   - Retains only the latest 10 messages in `chat_history` to manage the prompt size effectively.\n",
    "   - The loop ends when the user types \"exit,\" after which the final conversation output is saved to a Markdown file titled \"Resume,\" and the file path is displayed to the user.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "7e402606",
   "metadata": {},
   "outputs": [],
   "source": [
    "class JobSearch:\n",
    "    def __init__(self, prompt):\n",
    "        # Initialize the chat model, prompt template, and search tool for job search assistance\n",
    "        self.model = ChatGoogleGenerativeAI(model=\"gemini-1.5-pro\")\n",
    "        self.prompt = prompt\n",
    "        self.tools = DuckDuckGoSearchResults()  # Search tool to find job listings or related information\n",
    "        # Create an agent executor with tool access, enabling verbose output and error handling\n",
    "        # self.agent = create_tool_calling_agent(self.model, self.tools, self.prompt)\n",
    "        # self.agent_executor = AgentExecutor(agent=self.agent, tools=self.tools, verbose=True, handle_parsing_errors=True)\n",
    "\n",
    "    def find_jobs(self, user_input):\n",
    "        results = self.tools.invoke(user_input)\n",
    "        chain = self.prompt | self.model  \n",
    "        jobs = chain.invoke({\"result\": results}).content\n",
    "        \n",
    "        path = save_file(str(jobs).replace(\"```markdown\", \"\").strip(), 'Job_search')\n",
    "        print(f\"Jobs saved to {path}\")\n",
    "        return path\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e328d5c6-e9fb-4f19-a8de-1e740bff2a40",
   "metadata": {},
   "source": [
    "### Now we are creating function which will help to categorize our user Input\n",
    "- We are using <a href=\"https://python.langchain.com/docs/how_to/few_shot_examples/\">👉 Few Shot prompting </a>(Checkout here) to make our LLM understand the categories.\n",
    "1. **`categorize` Function**:\n",
    "   - Categorizes a user query into four main areas: Learning Generative AI, Resume Making, Interview Preparation, or Job Search.\n",
    "   - Uses a template prompt with examples to guide the AI in choosing the correct category and returns the category number.\n",
    "\n",
    "2. **`handle_learning_resource` Function**:\n",
    "   - Determines if a user query about generative AI is related to creating tutorials or asking general questions.\n",
    "   - Uses a prompt to specify these categories and returns \"Tutorial\" or \"Question\" based on the AI's categorization.\n",
    "\n",
    "3. **`handle_interview_preparation` Function**:\n",
    "   - Identifies if a user query in the interview category is about a mock interview or general interview questions.\n",
    "   - Uses examples to instruct the AI on the difference, returning either \"Mock\" or \"Question\" to guide further interaction.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "d053e39b-f986-4c21-83a3-6b2ea9acbe28",
   "metadata": {},
   "outputs": [],
   "source": [
    "def categorize(state: State) -> State:\n",
    "    \"\"\"Categorizes the user query into one of four main categories: Learn Generative AI Technology, Resume Making, Interview Preparation, or Job Search.\"\"\"\n",
    "    prompt = ChatPromptTemplate.from_template(\n",
    "        \"Categorize the following customer query into one of these categories:\\n\"\n",
    "        \"1: Learn Generative AI Technology\\n\"\n",
    "        \"2: Resume Making\\n\"\n",
    "        \"3: Interview Preparation\\n\"\n",
    "        \"4: Job Search\\n\"\n",
    "        \"Give the number only as an output.\\n\\n\"\n",
    "        \"Examples:\\n\"\n",
    "        \"1. Query: 'What are the basics of generative AI, and how can I start learning it?' -> 1\\n\"\n",
    "        \"2. Query: 'Can you help me improve my resume for a tech position?' -> 2\\n\"\n",
    "        \"3. Query: 'What are some common questions asked in AI interviews?' -> 3\\n\"\n",
    "        \"4. Query: 'Are there any job openings for AI engineers?' -> 4\\n\\n\"\n",
    "        \"Now, categorize the following customer query:\\n\"\n",
    "        \"Query: {query}\"\n",
    "    )\n",
    "\n",
    "    # Creates a categorization chain and invokes it with the user's query to get the category\n",
    "    chain = prompt | llm \n",
    "    print('Categorizing the customer query...')\n",
    "    category = chain.invoke({\"query\": state[\"query\"]}).content\n",
    "    return {\"category\": category}\n",
    "\n",
    "def handle_learning_resource(state: State) -> State:\n",
    "    \"\"\"Determines if the query is related to Tutorial creation or general Questions on generative AI topics.\"\"\"\n",
    "    prompt = ChatPromptTemplate.from_template(\n",
    "        \"Categorize the following user query into one of these categories:\\n\\n\"\n",
    "        \"Categories:\\n\"\n",
    "        \"- Tutorial: For queries related to creating tutorials, blogs, or documentation on generative AI.\\n\"\n",
    "        \"- Question: For general queries asking about generative AI topics.\\n\"\n",
    "        \"- Default to Question if the query doesn't fit either of these categories.\\n\\n\"\n",
    "        \"Examples:\\n\"\n",
    "        \"1. User query: 'How to create a blog on prompt engineering for generative AI?' -> Category: Tutorial\\n\"\n",
    "        \"2. User query: 'Can you provide a step-by-step guide on fine-tuning a generative model?' -> Category: Tutorial\\n\"\n",
    "        \"3. User query: 'Provide me the documentation for Langchain?' -> Category: Tutorial\\n\"\n",
    "        \"4. User query: 'What are the main applications of generative AI?' -> Category: Question\\n\"\n",
    "        \"5. User query: 'Is there any generative AI course available?' -> Category: Question\\n\\n\"\n",
    "        \"Now, categorize the following user query:\\n\"\n",
    "        \"The user query is: {query}\\n\"\n",
    "    )\n",
    "\n",
    "    # Creates a further categorization chain to decide between Tutorial or Question\n",
    "    chain = prompt | llm \n",
    "    print('Categorizing the customer query further...')\n",
    "    response = chain.invoke({\"query\": state[\"query\"]}).content\n",
    "    return {\"category\": response}\n",
    "\n",
    "def handle_interview_preparation(state: State) -> State:\n",
    "    \"\"\"Determines if the query is related to Mock Interviews or general Interview Questions.\"\"\"\n",
    "    prompt = ChatPromptTemplate.from_template(\n",
    "        \"Categorize the following user query into one of these categories:\\n\\n\"\n",
    "        \"Categories:\\n\"\n",
    "        \"- Mock: For requests related to mock interviews.\\n\"\n",
    "        \"- Question: For general queries asking about interview topics or preparation.\\n\"\n",
    "        \"- Default to Question if the query doesn't fit either of these categories.\\n\\n\"\n",
    "        \"Examples:\\n\"\n",
    "        \"1. User query: 'Can you conduct a mock interview with me for a Gen AI role?' -> Category: Mock\\n\"\n",
    "        \"2. User query: 'What topics should I prepare for an AI Engineer interview?' -> Category: Question\\n\"\n",
    "        \"3. User query: 'I need to practice interview focused on Gen AI.' -> Category: Mock\\n\"\n",
    "        \"4. User query: 'Can you list important coding topics for AI tech interviews?' -> Category: Question\\n\\n\"\n",
    "        \"Now, categorize the following user query:\\n\"\n",
    "        \"The user query is: {query}\\n\"\n",
    "    )\n",
    "\n",
    "    # Creates a further categorization chain to decide between Mock or Question\n",
    "    chain = prompt | llm \n",
    "    print('Categorizing the customer query further...')\n",
    "    response = chain.invoke({\"query\": state[\"query\"]}).content\n",
    "    return {\"category\": response}\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1aca2e35-d37b-45a7-b228-6c04d51f4231",
   "metadata": {},
   "source": [
    "### Now we will create function for job search and Resume making\n",
    "\n",
    "1. **`job_search` Function**:\n",
    "   - Sets up a job search agent to find Generative AI job listings based on user input, gathering details like company name, job title, and links.\n",
    "   - Generates a Markdown (.md) file with results, displayed to the user.\n",
    "\n",
    "2. **`handle_resume_making` Function**:\n",
    "   - Creates a customized resume for AI-focused roles by gathering user details (skills, experience, projects) in a structured format.\n",
    "   - Produces a Markdown (.md) resume template tailored to the Generative AI jobcandidate's performance.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "34c60b01-a5be-4f71-a356-cb5b6fbaad8c",
   "metadata": {},
   "outputs": [],
   "source": [
    "def job_search(state: State) -> State:\n",
    "    \"\"\"Provide a job search response based on user query requirements.\"\"\"\n",
    "    prompt = ChatPromptTemplate.from_template('''Your task is to refactor and make .md file for the this content which includes\n",
    "    the jobs available in the market. Refactor such that user can refer easily. Content: {result}''')\n",
    "    jobSearch = JobSearch(prompt)\n",
    "    state[\"query\"] = input('Please make sure to mention Job location you want,Job roles\\n')\n",
    "    path = jobSearch.find_jobs(state[\"query\"])\n",
    "    show_md_file(path)\n",
    "    return {\"response\": path}\n",
    "\n",
    "def handle_resume_making(state: State) -> State:\n",
    "    \"\"\"Generate a customized resume based on user details for a tech role in AI and Generative AI.\"\"\"\n",
    "    prompt = ChatPromptTemplate.from_messages([\n",
    "        (\"system\", '''You are a skilled resume expert with extensive experience in crafting resumes tailored for tech roles, especially in AI and Generative AI. \n",
    "        Your task is to create a resume template for an AI Engineer specializing in Generative AI, incorporating trending keywords and technologies in the current job market. \n",
    "        Feel free to ask users for any necessary details such as skills, experience, or projects to complete the resume. \n",
    "        Try to ask details step by step and try to ask all details within 4 to 5 steps.\n",
    "        Ensure the final resume is in .md format.'''),\n",
    "       MessagesPlaceholder(\"chat_history\"),\n",
    "        (\"human\", \"{input}\"),\n",
    "        (\"placeholder\", \"{agent_scratchpad}\"),\n",
    "    ])\n",
    "    resumeMaker = ResumeMaker(prompt)\n",
    "    path = resumeMaker.Create_Resume(state[\"query\"])\n",
    "    show_md_file(path)\n",
    "    return {\"response\": path}\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "df818050-866e-4c56-aebd-7588e6bddd88",
   "metadata": {},
   "source": [
    "### Next we will create a function for Q&A query bot and Tutorial maker\n",
    "\n",
    "3. **`ask_query_bot` Function**:\n",
    "   - Engages in a conversational Q&A session, providing detailed answers to user queries related to Generative AI.\n",
    "   - Uses back-and-forth interaction to ensure clarity and completeness in responses.\n",
    "\n",
    "4. **`tutorial_agent` Function**:\n",
    "   - Generates comprehensive tutorial blogs on Generative AI topics with explanations, example code, and resources for further learning.\n",
    "   - Saves the tutorial in Markdown (.md) format, designed for clarity and learning support."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "id": "0c0ed58d-b28d-457f-8111-6d1138803e5b",
   "metadata": {},
   "outputs": [],
   "source": [
    "def ask_query_bot(state: State) -> State:\n",
    "    \"\"\"Provide detailed answers to user queries related to Generative AI.\"\"\"\n",
    "    system_message = '''You are an expert Generative AI Engineer with extensive experience in training and guiding others in AI engineering. \n",
    "    You have a strong track record of solving complex problems and addressing various challenges in AI. \n",
    "    Your role is to assist users by providing insightful solutions and expert advice on their queries.\n",
    "    Engage in a back-and-forth chat session to address user queries.'''\n",
    "    prompt = [SystemMessage(content=system_message)]\n",
    "\n",
    "    learning_agent = LearningResourceAgent(prompt)\n",
    "\n",
    "    path = learning_agent.QueryBot(state[\"query\"])\n",
    "    show_md_file(path)\n",
    "    return {\"response\": path}\n",
    "\n",
    "def tutorial_agent(state: State) -> State:\n",
    "    \"\"\"Generate a tutorial blog for Generative AI based on user requirements.\"\"\"\n",
    "    system_message = '''You are a knowledgeable assistant specializing as a Senior Generative AI Developer with extensive experience in both development and tutoring. \n",
    "         Additionally, you are an experienced blogger who creates tutorials focused on Generative AI.\n",
    "         Your task is to develop high-quality tutorials blogs in .md file with Coding example based on the user's requirements. \n",
    "         Ensure tutorial includes clear explanations, well-structured python code, comments, and fully functional code examples.\n",
    "         Provide resource reference links at the end of each tutorial for further learning.'''\n",
    "    prompt = ChatPromptTemplate.from_messages([(\"system\", system_message),\n",
    "            (\"placeholder\", \"{chat_history}\"),\n",
    "            (\"human\", \"{input}\"),\n",
    "            (\"placeholder\", \"{agent_scratchpad}\"),])\n",
    "    #agent_scratchpad is a function that formats the intermediate steps of the agent's actions and observations into a string. \n",
    "    #This function is used to keep track of the agent's thoughts or actions during the execution of the program. But its not necessary, we can do without this so we will not include it only define it.\n",
    "    learning_agent = LearningResourceAgent(prompt)\n",
    "    path = learning_agent.TutorialAgent(state[\"query\"])\n",
    "    show_md_file(path)\n",
    "    return {\"response\": path}\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e2627e11-0dce-4374-8c47-3541125981a4",
   "metadata": {},
   "source": [
    "### Finally we will create function Interview Question prep and Mock interview\n",
    "\n",
    "5. **`interview_topics_quesions` Function**:\n",
    "   - Provides a list of interview questions tailored to Generative AI roles, along with references where possible.\n",
    "   - Outputs a Markdown (.md) document with curated questions based on user requirements.\n",
    "\n",
    "6. **`mock_interview` Function**:\n",
    "   - Conducts a simulated Generative AI job interview, interacting with the user in real-time.\n",
    "   - Provides a post-interview evaluation, summarizing the candidate's performance."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "cbef12ea-9dde-4408-a7d6-8e2a3e10e6b3",
   "metadata": {},
   "outputs": [],
   "source": [
    "def interview_topics_questions(state: State) -> State:\n",
    "    \"\"\"Provide a curated list of interview questions related to Generative AI based on user input.\"\"\"\n",
    "    system_message = '''You are a good researcher in finding interview questions for Generative AI topics and jobs.\n",
    "                     Your task is to provide a list of interview questions for Generative AI topics and job based on user requirements.\n",
    "                     Provide top questions with references and links if possible. You may ask for clarification if needed.\n",
    "                     Generate a .md document containing the questions.'''\n",
    "    prompt = ChatPromptTemplate.from_messages([\n",
    "                        (\"system\", system_message),\n",
    "                        MessagesPlaceholder(\"chat_history\"),\n",
    "                        (\"human\", \"{input}\"),\n",
    "                        (\"placeholder\", \"{agent_scratchpad}\"),])\n",
    "    interview_agent = InterviewAgent(prompt)\n",
    "    path = interview_agent.Interview_questions(state[\"query\"])\n",
    "    show_md_file(path)\n",
    "    return {\"response\": path}\n",
    "\n",
    "def mock_interview(state: State) -> State:\n",
    "    \"\"\"Conduct a mock interview for a Generative AI position, including evaluation at the end.\"\"\"\n",
    "    system_message = '''You are a Generative AI Interviewer. You have conducted numerous interviews for Generative AI roles.\n",
    "         Your task is to conduct a mock interview for a Generative AI position, engaging in a back-and-forth interview session.\n",
    "         The conversation should not exceed more than 15 to 20 minutes.\n",
    "         At the end of the interview, provide an evaluation for the candidate.'''\n",
    "    prompt = [SystemMessage(content=system_message)]\n",
    "    interview_agent = InterviewAgent(prompt)\n",
    "    path = interview_agent.Mock_Interview()\n",
    "    show_md_file(path)\n",
    "    return {\"response\": path}"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ea12e827-16f9-46a5-9a81-ba4edd44ccd7",
   "metadata": {},
   "source": [
    "### Here, We are creating routing function which will be responsible for conditional edge to give direction after categorization.\n",
    "- Checkout Here<a href=\"https://langchain-ai.github.io/langgraph/#:~:text=Conditional%20edge%20means%20that%20the,the%20agent%20(LLM)%20decides.\">👉 Conditional Edge</a>\n",
    "1. **`route_query` Function**:\n",
    "   - Routes the main query based on the assigned category number, directing it to the appropriate handler: Learning Resource, Resume Making, Interview Preparation, or Job Search.\n",
    "   - If the query does not match any predefined categories, prompts the user to ask a more relevant question.\n",
    "\n",
    "2. **`route_interview` Function**:\n",
    "   - Routes interview-related queries to specific handlers based on the query's sub-category (either Mock Interview or Interview Topics).\n",
    "   - If the category is unclear, defaults to \"mock_interview.\"\n",
    "\n",
    "3. **`route_learning` Function**:\n",
    "   - Routes learning-related queries, directing them to either a general question bot or a tutorial creation agent.\n",
    "   - Returns `False` if the query does not clearly fit either sub-category.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "id": "10f31dd1-9edc-447c-9cb3-cb4f71c73a29",
   "metadata": {},
   "outputs": [],
   "source": [
    "def route_query(state: State):\n",
    "    \"\"\"Route the query based on its category to the appropriate handler.\"\"\"\n",
    "    if '1' in state[\"category\"]:\n",
    "        print('Category: handle_learning_resource')\n",
    "        return \"handle_learning_resource\"  # Directs queries about learning generative AI to the learning resource handler\n",
    "    elif '2' in state[\"category\"]:\n",
    "        print('Category: handle_resume_making')\n",
    "        return \"handle_resume_making\"  # Directs queries about resume making to the resume handler\n",
    "    elif '3' in state[\"category\"]:\n",
    "        print('Category: handle_interview_preparation')\n",
    "        return \"handle_interview_preparation\"  # Directs queries about interview preparation to the interview handler\n",
    "    elif '4' in state[\"category\"]:\n",
    "        print('Category: job_search')\n",
    "        return \"job_search\"  # Directs job search queries to the job search handler\n",
    "    else:\n",
    "        print(\"Please ask your question based on my description.\")\n",
    "        return False  # Returns False if the category does not match any predefined options\n",
    "\n",
    "def route_interview(state: State) -> str:\n",
    "    \"\"\"Route the query to the appropriate interview-related handler.\"\"\"\n",
    "    if 'Question'.lower() in state[\"category\"].lower():\n",
    "        print('Category: interview_topics_questions')\n",
    "        return \"interview_topics_questions\"  # Directs to the handler for interview topic questions\n",
    "    elif 'Mock'.lower() in state[\"category\"].lower():\n",
    "        print('Category: mock_interview')\n",
    "        return \"mock_interview\"  # Directs to the mock interview handler\n",
    "    else:\n",
    "        print('Category: mock_interview')\n",
    "        return \"mock_interview\"  # Defaults to mock interview if category does not clearly match\n",
    "\n",
    "def route_learning(state: State):\n",
    "    \"\"\"Route the query based on the learning path category.\"\"\"\n",
    "    if 'Question'.lower() in state[\"category\"].lower():\n",
    "        print('Category: ask_query_bot')\n",
    "        return \"ask_query_bot\"  # Directs queries to the general question bot\n",
    "    elif 'Tutorial'.lower() in state[\"category\"].lower():\n",
    "        print('Category: tutorial_agent')\n",
    "        return \"tutorial_agent\"  # Directs queries to the tutorial creation agent\n",
    "    else:\n",
    "        print(\"Please ask your question based on my interview description.\")\n",
    "        return False  # Returns False if no clear category match is found\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c2d30406-4f79-4eaf-8d86-cb98c20d764d",
   "metadata": {},
   "source": [
    "### Now all set lets create workflow graphs adding edges and nodes.\n",
    "\n",
    "1. **Workflow Creation**:\n",
    "   - Initializes a `StateGraph` to define the workflow for query handling, with each node representing a different query handler.\n",
    "\n",
    "2. **Nodes and Edges**:\n",
    "   - Adds nodes for each query category and handling function: `categorize`, `handle_learning_resource`, `handle_resume_making`, `handle_interview_preparation`, and `job_search`.\n",
    "   - Adds edges to connect nodes conditionally based on the category (e.g., `route_query` routes from \"categorize\" to the appropriate handler).\n",
    "   - Conditional edges further route within specific categories, such as learning resources (`route_learning`) and interview preparation (`route_interview`).\n",
    "\n",
    "3. **Workflow Endpoints**:\n",
    "   - Defines nodes where the workflow terminates (e.g., `handle_resume_making`, `mock_interview`, and `job_search`), connecting them to `END`.\n",
    "\n",
    "4. **Compilation**:\n",
    "   - Sets `categorize` as the entry point and compiles the workflow into an executable application, `app`, for handling user queries.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "id": "e932ca15-983a-4bff-8ed9-51e62323f9ed",
   "metadata": {},
   "outputs": [],
   "source": [
    "# Create the workflow graph\n",
    "workflow = StateGraph(State)\n",
    "\n",
    "# Add nodes for each state in the workflow\n",
    "workflow.add_node(\"categorize\", categorize)  # Initial categorization node\n",
    "workflow.add_node(\"handle_learning_resource\", handle_learning_resource)  # Handles learning-related queries\n",
    "workflow.add_node(\"handle_resume_making\", handle_resume_making)  # Handles resume-making queries\n",
    "workflow.add_node(\"handle_interview_preparation\", handle_interview_preparation)  # Handles interview prep queries\n",
    "workflow.add_node(\"job_search\", job_search)  # Handles job search queries\n",
    "workflow.add_node(\"mock_interview\", mock_interview)  # Handles mock interview sessions\n",
    "workflow.add_node(\"interview_topics_questions\", interview_topics_questions)  # Handles interview topic questions\n",
    "workflow.add_node(\"tutorial_agent\", tutorial_agent)  # Tutorial agent for generative AI learning resources\n",
    "workflow.add_node(\"ask_query_bot\", ask_query_bot)  # General query bot for learning resources\n",
    "\n",
    "# Define the starting edge to the categorization node\n",
    "workflow.add_edge(START, \"categorize\")\n",
    "\n",
    "# Add conditional edges based on category routing function\n",
    "workflow.add_conditional_edges(\n",
    "    \"categorize\",\n",
    "    route_query,\n",
    "    {\n",
    "        \"handle_learning_resource\": \"handle_learning_resource\",\n",
    "        \"handle_resume_making\": \"handle_resume_making\",\n",
    "        \"handle_interview_preparation\": \"handle_interview_preparation\",\n",
    "        \"job_search\": \"job_search\"\n",
    "    }\n",
    ")\n",
    "\n",
    "# Add conditional edges for further routing in interview preparation\n",
    "workflow.add_conditional_edges(\n",
    "    \"handle_interview_preparation\",\n",
    "    route_interview,\n",
    "    {\n",
    "        \"mock_interview\": \"mock_interview\",\n",
    "        \"interview_topics_questions\": \"interview_topics_questions\",\n",
    "    }\n",
    ")\n",
    "\n",
    "# Add conditional edges for further routing in learning resources\n",
    "workflow.add_conditional_edges(\n",
    "    \"handle_learning_resource\",\n",
    "    route_learning,\n",
    "    {\n",
    "        \"tutorial_agent\": \"tutorial_agent\",\n",
    "        \"ask_query_bot\": \"ask_query_bot\",\n",
    "    }\n",
    ")\n",
    "\n",
    "# Define edges that lead to the end of the workflow\n",
    "workflow.add_edge(\"handle_resume_making\", END)\n",
    "workflow.add_edge(\"job_search\", END)\n",
    "workflow.add_edge(\"interview_topics_questions\", END)\n",
    "workflow.add_edge(\"mock_interview\", END)\n",
    "workflow.add_edge(\"ask_query_bot\", END)\n",
    "workflow.add_edge(\"tutorial_agent\", END)\n",
    "\n",
    "# Set the initial entry point to start the workflow at the categorize node\n",
    "workflow.set_entry_point(\"categorize\")\n",
    "\n",
    "# Compile the workflow graph into an application\n",
    "app = workflow.compile()\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "cc25655d-72d8-44d4-b049-983b168c2429",
   "metadata": {},
   "source": [
    "### Lets Visualize our graph\n",
    "\n",
    "- **Displaying Workflow Graph**:\n",
    "  - Generates a visual representation of the `app` workflow graph using Mermaid, which is then displayed as a PNG image.\n",
    "  - The `MermaidDrawMethod.API` method is used to create the PNG, ensuring a clear, structured view of the workflow nodes and their connections.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "id": "0ab9b40e-5ea0-4147-a8fc-c30d7a018dab",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAABLgAAAGwCAIAAAAlrEvLAAAAAXNSR0IArs4c6QAAIABJREFUeJzs3XlcTPvjP/AzzTQt0zJtWlUqKVnaRLaoXFtJQqRk52a5Lq59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cAoMEuXbrUpk0bDQ0NvIMApRYZGTl48GBDQwW8Gf3/NfGGIkJo3rx5d+/eTUxMxDsIkF+TJ0/es2cP3imAUjMxMcnLy8M7BQD/4fP5JSUlRkZGeAcBoMH27t0bHh6Odwqg1GJiYoYMGdK/f3+8g/ySpt9QRAht2bLl6dOnR48exTsIkFOBgYFMJvPDhw94BwHKy9LS8tOnT3inAOA/aWlppqameKcAoMF2794dHBxsYGCAdxCgvCZNmmRoaNi+fXu8g/wqpWgoIoSmTZv28ePHVatW4R0EyKmoqKj169fjnQIoL2tra5igD8iVrKwsd3d3vFMA0DC3bt0qKysbOHAg3kGAkjp79mxYWNioUaMUemiikLI0FBFCixYtatu2bYcOHW7cuIF3FiB3qFTq8uX/a+/Oo9os876BJ4GwhUDIQjZK2AotbSmCFltwqVO12haqY+vouIzbOE5flzn2OMfjsWf08T0zOsfRcab1cVx7nDqvfbQtdNFapQvFQiulG5QlrAkkIQlJSEISsr1/XE9v7wZatSbcgXw/f+Tcudl+UEru731d1+/6v6tXr2a6EIhdHA7nxIkTTFcB8L8aGhpUKhXTVQD8BO+8886RI0eefvpppguBWNTU1PTrX//67NmzH3300SwYSyRiKCiyWKyVK1c2NjaePn163bp1x44dY7ociC5isXjHjh2VlZXYfhMYUVFRgQa8ED2OHz8+a651IBa8+eabaWlpL730EtOFQMxpaGi4//77P/744xdffPHFF19ks9lMVxQ2sRUUWSxWfHz8xo0bX3311f37969fv762tpbpiiCKJCQkfPPNN6+88gp+MWD63Xjjja2trUxXAcBisVg9PT1SqRRrFGFG0Gg099xzj1Qqveeee5iuBWKI1Wp9//33V61adeDAgeeff37z5s3z5s1juqgwY8fyFs89PT3btm07evTo7bffvnr16oKCAqYrgmjx8ssvJyUl/fa3vxUIBEzXAjHk4YcffvrppxcvXsx0IRDrXnvtNZVKdffddzNdCMAPePvtt/fv3//aa68VFhYyXQvEBJ/P9/XXX585c2b//v2//OUv77zzTplMxnRRkRLTQZFwuVyfffbZnj174uPj161bV1VVhW2jgEwk+NOf/vT444+vX7+e6VogVnz55ZddXV1PPfUU04VArHv44Yc3b96cnJzMdCEAl/Tll1++8sorjzzyyEMPPcR0LTD7ORyOEydO7N27t6GhYcWKFbfddltVVRXTRUUcguL3Ojo6Dh06tHPnTplMdtNNNy1fvjw7O5vpooBhW7dufe+995544onZ0b0Kol9NTc3mzZuzsrKYLgRi1wcffOByuTZs2MB0IQBT2759+/vvv19TU/PQQw/hdgZEVEdHR2NjY2NjY09Pzx133LF48eLly5czXdT0QVCcwrlz5+rr6w8ePKhQKFQq1bXXXltRUZGYmMh0XcCM8fHxt99+u7u7u7y8/N577+XxeExXBLPZoUOHdu/e/frrrzNdCMSoiYmJG264Af3eIAqNjIxs3769vb1dpVI98sgjmP8FEaJWq0+ePNnS0uLxeIxGY2VlZWVlZWyuCkFQvJyBgYGmpqampqbm5ub58+evWLGioKDgqquuio+PZ7o0mG4Oh+Pf//73J5988qtf/WrZsmWlpaVMVwSz1ksvvbR69ery8nKmC4FY9I9//GPu3LkrV65kuhCA79XX1zc1NTU0NKxfv37dunWpqalMVwSzis/nO3fuXF9fX2Nj48mTJyUSSVlZWXl5eVlZmVAoZLo6JiEo/linTp1qa2traGhobW2dN29eaWlpWVlZaWkp9siONV988cVnn31mNpvXrFlz++23y+VypiuCWaiqqurAgQOYUgXTbNeuXWfOnNm0aRPThQCwWCzWyZMn9+zZ88UXX1RVVdXU1MTCkjCYNmq1uq2t7dy5c21tbT09PQsXLly6dGl+fn5ZWRmu7SkIilfi3Llzp06dOnnypM/n6+3tLS4uLi4unj9//vz589PS0piuDqaDRqPZvXv3iRMnfD7fihUrfvGLX2BRGYSRRqN5+eWX3333XaYLgRhy+vTpjz766I033mC6EIhpPp/v8OHDhw4dOnz48M0331xSUnLbbbclJCQwXRfMbA6Ho6urq7u7u7Ozs7u7u6ura+7cuYWFhQsXLlywYEFRURHTBUYpBMWfS6fTtbe3t7e3nz9//vz582lpaVVVVRkZGQUFBQUFBQgPs157e/vXX3/9zTffz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QlpcQxXREAAEAEISgCAMB0G+oZ7zo53tfmTORxvW5/XEJcYkqi3+9nuq6LBIOsoD/g9/p9Hj83iZ2QwJ5bmlpQmpImxDYYAAAw+yEoAgAAY2xm77jdNz7mn3AFPO4A0+VchM1mcRM5vLS4lLT4NGF8YjKGEAEAIIYgKAIAAAAAAMBFsI8iAAAAAAAAXARBEQAAAAAAAC6CoAgAAAAAAAAXQVAEAAAAAACAiyAoAgAAAAAAwEUQFAEAAAAAAOAi/x+spvHhXAvelAAAAABJRU5ErkJggg==",
      "text/plain": [
       "<IPython.core.display.Image object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Display the workflow graph as a PNG image using Mermaid\n",
    "display(\n",
    "    Image(\n",
    "        app.get_graph().draw_mermaid_png(\n",
    "            draw_method=MermaidDrawMethod.API,  # Uses Mermaid's API to generate the PNG image of the workflow graph\n",
    "        )\n",
    "    )\n",
    ")\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "71869f0f-9339-4ef9-8873-5543701a27c3",
   "metadata": {},
   "source": [
    "### Final function to Processes a user query using the LangGraph workflow and returns a dictionary containing the query's category and response."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "id": "40306bbb-b2d7-4964-9b4e-0c2c0daddbeb",
   "metadata": {},
   "outputs": [],
   "source": [
    "def run_user_query(query: str) -> Dict[str, str]:\n",
    "    \"\"\"Process a user query through the LangGraph workflow.\n",
    "    \n",
    "    Args:\n",
    "        query (str): The user's query\n",
    "        \n",
    "    Returns:\n",
    "        Dict[str, str]: A dictionary containing the query's category and response\n",
    "    \"\"\"\n",
    "    results = app.invoke({\"query\": query})\n",
    "    return {\n",
    "        \"category\": results[\"category\"],\n",
    "        \"response\": results[\"response\"]\n",
    "    }\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8892d2a9-f92c-4ba5-82fe-684cbef51c26",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "id": "1625db2e-9bc0-40ef-92f2-d004af4b687e",
   "metadata": {},
   "source": [
    "# ---------------------------Testing Different Scenarios------------------------------"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "cb68e7b4-0788-45b9-b6c0-0b86b5620980",
   "metadata": {},
   "source": [
    "## TEST CASE 1: Creating Tutorials"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "id": "58014e0e-7031-47d7-b357-cfe640fb7be9",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Categorizing the customer query...\n",
      "Category: handle_learning_resource\n",
      "Categorizing the customer query further...\n",
      "Category: tutorial_agent\n",
      "\n",
      "\n",
      "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
      "\u001b[32;1m\u001b[1;3m```markdown\n",
      "# LangChain and LangGraph: A Powerful Combination for Generative AI Applications\n",
      "\n",
      "This tutorial introduces LangChain and LangGraph, two powerful libraries that enhance the development of Generative AI applications. We'll explore their core concepts and demonstrate their usage with practical Python code examples.\n",
      "\n",
      "## LangChain: Building Complex LLM Workflows\n",
      "\n",
      "LangChain simplifies the creation of sophisticated applications using Large Language Models (LLMs). It provides a structured framework for chaining together different components, enabling complex workflows and interactions.\n",
      "\n",
      "### Core Concepts:\n",
      "\n",
      "* **Chains:**  The fundamental building blocks of LangChain. Chains link together various components like LLMs, prompts, and other utilities to perform specific tasks.\n",
      "* **LLMs:**  LangChain supports integration with various LLMs, allowing flexibility in choosing the best model for your needs.\n",
      "* **Prompts:**  Well-crafted prompts are essential for effective LLM interaction. LangChain provides tools for managing and optimizing prompts.\n",
      "* **Indexes:**  Indexes structure your data for efficient retrieval and usage within LangChain workflows.\n",
      "* **Agents:**  Agents empower LLMs to interact with their environment, making decisions and gathering information.\n",
      "* **Memory:**  Memory components maintain context and history across chain interactions.\n",
      "* **Callbacks:** Callbacks provide insights into chain execution and allow for monitoring and customization.\n",
      "\n",
      "### Code Example:\n",
      "\n",
      "```python\n",
      "from langchain.llms import OpenAI\n",
      "from langchain.prompts import PromptTemplate\n",
      "from langchain.chains import LLMChain\n",
      "\n",
      "# Initialize an LLM\n",
      "llm = OpenAI(temperature=0.7)\n",
      "\n",
      "# Define a prompt template\n",
      "template = \"\"\"Tell me a {adjective} joke about {topic}.\"\"\"\n",
      "prompt = PromptTemplate(template=template, input_variables=[\"adjective\", \"topic\"])\n",
      "\n",
      "# Create an LLM chain\n",
      "chain = LLMChain(prompt=prompt, llm=llm)\n",
      "\n",
      "# Execute the chain\n",
      "response = chain.run({\"adjective\": \"funny\", \"topic\": \"programming\"})\n",
      "print(response)\n",
      "\n",
      "```\n",
      "\n",
      "## LangGraph: Visualizing and Analyzing LLM Workflows\n",
      "\n",
      "LangGraph complements LangChain by providing tools to visualize, analyze, and debug LLM workflows. It offers a graphical representation of chains, facilitating understanding and optimization.\n",
      "\n",
      "### Core Concepts:\n",
      "\n",
      "* **Graph Visualization:** LangGraph creates interactive graphs of LangChain workflows, making it easy to see how components interact.\n",
      "* **Workflow Analysis:**  Analyze chain execution flow, identify bottlenecks, and optimize performance.\n",
      "* **Debugging:**  Visual debugging tools help pinpoint issues in complex chains.\n",
      "\n",
      "### Code Example (Conceptual - LangGraph integration is evolving):\n",
      "\n",
      "```python\n",
      "# Hypothetical LangGraph integration - API is subject to change\n",
      "from langgraph import visualize\n",
      "\n",
      "# Visualize the LLM chain\n",
      "visualize(chain)\n",
      "\n",
      "```\n",
      "\n",
      "## Resources for Further Learning:\n",
      "\n",
      "* **LangChain Documentation:** [https://python.langchain.com/en/latest/index.html](https://python.langchain.com/en/latest/index.html)\n",
      "* **LangGraph Repository:** [https://github.com/langchain-ai/langchain-langgraph](https://github.com/langchain-ai/langchain-langgraph)\n",
      "\n",
      "\n",
      "This tutorial provided a foundational understanding of LangChain and LangGraph.  Experiment with the code examples and explore the provided resources to delve deeper into these powerful libraries and unlock their full potential for your Generative AI projects.\n",
      "```\u001b[0m\n",
      "\n",
      "\u001b[1m> Finished chain.\u001b[0m\n",
      "File 'Agent_output\\Tutorial_20241117172824.md' created successfully.\n",
      "Tutorial saved to Agent_output\\Tutorial_20241117172824.md\n"
     ]
    },
    {
     "data": {
      "text/markdown": [
       "# LangChain and LangGraph: A Powerful Combination for Generative AI Applications\n",
       "\n",
       "This tutorial introduces LangChain and LangGraph, two powerful libraries that enhance the development of Generative AI applications. We'll explore their core concepts and demonstrate their usage with practical Python code examples.\n",
       "\n",
       "## LangChain: Building Complex LLM Workflows\n",
       "\n",
       "LangChain simplifies the creation of sophisticated applications using Large Language Models (LLMs). It provides a structured framework for chaining together different components, enabling complex workflows and interactions.\n",
       "\n",
       "### Core Concepts:\n",
       "\n",
       "* **Chains:**  The fundamental building blocks of LangChain. Chains link together various components like LLMs, prompts, and other utilities to perform specific tasks.\n",
       "* **LLMs:**  LangChain supports integration with various LLMs, allowing flexibility in choosing the best model for your needs.\n",
       "* **Prompts:**  Well-crafted prompts are essential for effective LLM interaction. LangChain provides tools for managing and optimizing prompts.\n",
       "* **Indexes:**  Indexes structure your data for efficient retrieval and usage within LangChain workflows.\n",
       "* **Agents:**  Agents empower LLMs to interact with their environment, making decisions and gathering information.\n",
       "* **Memory:**  Memory components maintain context and history across chain interactions.\n",
       "* **Callbacks:** Callbacks provide insights into chain execution and allow for monitoring and customization.\n",
       "\n",
       "### Code Example:\n",
       "\n",
       "```python\n",
       "from langchain.llms import OpenAI\n",
       "from langchain.prompts import PromptTemplate\n",
       "from langchain.chains import LLMChain\n",
       "\n",
       "# Initialize an LLM\n",
       "llm = OpenAI(temperature=0.7)\n",
       "\n",
       "# Define a prompt template\n",
       "template = \"\"\"Tell me a {adjective} joke about {topic}.\"\"\"\n",
       "prompt = PromptTemplate(template=template, input_variables=[\"adjective\", \"topic\"])\n",
       "\n",
       "# Create an LLM chain\n",
       "chain = LLMChain(prompt=prompt, llm=llm)\n",
       "\n",
       "# Execute the chain\n",
       "response = chain.run({\"adjective\": \"funny\", \"topic\": \"programming\"})\n",
       "print(response)\n",
       "\n",
       "```\n",
       "\n",
       "## LangGraph: Visualizing and Analyzing LLM Workflows\n",
       "\n",
       "LangGraph complements LangChain by providing tools to visualize, analyze, and debug LLM workflows. It offers a graphical representation of chains, facilitating understanding and optimization.\n",
       "\n",
       "### Core Concepts:\n",
       "\n",
       "* **Graph Visualization:** LangGraph creates interactive graphs of LangChain workflows, making it easy to see how components interact.\n",
       "* **Workflow Analysis:**  Analyze chain execution flow, identify bottlenecks, and optimize performance.\n",
       "* **Debugging:**  Visual debugging tools help pinpoint issues in complex chains.\n",
       "\n",
       "### Code Example (Conceptual - LangGraph integration is evolving):\n",
       "\n",
       "```python\n",
       "# Hypothetical LangGraph integration - API is subject to change\n",
       "from langgraph import visualize\n",
       "\n",
       "# Visualize the LLM chain\n",
       "visualize(chain)\n",
       "\n",
       "```\n",
       "\n",
       "## Resources for Further Learning:\n",
       "\n",
       "* **LangChain Documentation:** [https://python.langchain.com/en/latest/index.html](https://python.langchain.com/en/latest/index.html)\n",
       "* **LangGraph Repository:** [https://github.com/langchain-ai/langchain-langgraph](https://github.com/langchain-ai/langchain-langgraph)\n",
       "\n",
       "\n",
       "This tutorial provided a foundational understanding of LangChain and LangGraph.  Experiment with the code examples and explore the provided resources to delve deeper into these powerful libraries and unlock their full potential for your Generative AI projects.\n",
       "```"
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "{'category': 'Category: Tutorial\\n',\n",
       " 'response': 'Agent_output\\\\Tutorial_20241117172824.md'}"
      ]
     },
     "execution_count": 47,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "query = \"I want to learn Langchain and langgraph.With usage and concept. Also give coding example implementation for both.Create tutorial for this.\"\n",
    "result = run_user_query(query)\n",
    "result"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e17a3631-1467-4847-9368-dffc5a9ebf91",
   "metadata": {},
   "source": [
    "## TEST CASE 2: Q&A session for Doubts"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 460,
   "id": "7c780ce3",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Categorizing the customer query...\n",
      "Category: handle_learning_resource\n",
      "Categorizing the customer query further...\n",
      "Category: ask_query_bot\n",
      "\n",
      "Starting the Q&A session. Type 'exit' to end the session.\n",
      "\n",
      "**************************************************AGENT**************************************************\n",
      "\n",
      "EXPERT AGENT RESPONSE: Let's break down the differences between LangGraph and CrewAI and when you might choose one over the other for agent creation. They target slightly different needs and approaches within the broader field of generative AI-powered agents.\n",
      "\n",
      "**LangGraph (LangChain + Graph Databases):**\n",
      "\n",
      "* **Focus:** Building agents that interact with and reason over knowledge graphs or other structured data sources. LangChain itself is a framework for developing LLM applications, and incorporating a graph database adds a powerful way to represent and query relationships between entities.\n",
      "* **Strengths:**\n",
      "    * **Complex Reasoning:** Excels when your agent needs to understand and navigate relationships between different pieces of information.  Think about scenarios like knowledge exploration, question answering over a specific dataset, or tasks requiring multi-hop reasoning.\n",
      "    * **Explainability:** The structured nature of a graph database can offer better explainability for the agent's decisions. It can trace back the reasoning path through the graph.\n",
      "    * **Data Grounding:** Prevents hallucinations by anchoring the agent's responses to the facts stored in the graph.\n",
      "* **Weaknesses:**\n",
      "    * **Setup Complexity:**  Requires setting up and managing a graph database, which adds complexity compared to simpler approaches.\n",
      "    * **Data Dependence:**  The agent's knowledge is limited to what's in the graph.  It might struggle with information not represented in the graph structure.\n",
      "    * **Less Flexible for Free-Form Conversation:** While possible, adapting LangGraph for highly dynamic, open-ended conversations can be more challenging than using tools designed specifically for dialogue.\n",
      "\n",
      "\n",
      "**CrewAI:**\n",
      "\n",
      "* **Focus:** Building conversational agents and bots, especially for task-oriented dialogues.  It emphasizes the flow of conversation and integrating with various APIs and tools.\n",
      "* **Strengths:**\n",
      "    * **Ease of Use for Conversational Flows:** Provides a more streamlined experience for designing conversational flows and handling user interactions.\n",
      "    * **Tool Integration:**  Facilitates connecting your agent to external services (e.g., booking systems, databases, APIs) to perform actions within the conversation.\n",
      "    * **Multi-Agent Collaboration:** CrewAI supports the development of multiple agents that can collaborate on a task, which can be powerful for complex workflows.\n",
      "* **Weaknesses:**\n",
      "    * **Less Suitable for Complex Reasoning:**  While you can implement some logic, CrewAI is not primarily designed for deep reasoning over complex knowledge structures like a graph database.\n",
      "    * **Potential for Hallucinations:**  Relies more heavily on LLMs, which can be prone to generating incorrect or nonsensical information if not carefully managed.\n",
      "    * **Less Emphasis on Explainability:**  Tracing the reasoning behind an agent's actions might be more difficult compared to a graph-based approach.\n",
      "\n",
      "\n",
      "**In short:**\n",
      "\n",
      "* **Choose LangGraph (LangChain + Graph DB) if:** Your application requires complex reasoning over structured data, explainability is crucial, and you want to minimize hallucinations by grounding responses to a knowledge base.\n",
      "* **Choose CrewAI if:** You need to build a conversational agent for task-oriented dialogues, integrate with various tools and APIs, and potentially orchestrate multiple agents.\n",
      "\n",
      "\n",
      "Could you tell me more about the specific agent you're trying to build? Knowing the context will allow me to give you more tailored advice.  For example, what is the agent's purpose, what kind of data will it interact with, and what are the key functionalities you're aiming for?\n",
      "\n",
      "**************************************************USER**************************************************\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "\n",
      "YOUR QUERY:  I want to create my Custom AI Agents\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "**************************************************AGENT**************************************************\n",
      "\n",
      "EXPERT AGENT RESPONSE: Creating your own custom AI agents is an exciting endeavor! To give you the best advice, let's refine our understanding of your goals.  \"Custom AI agents\" is a broad term.  Here's a breakdown of key considerations and how they might influence your tool choices:\n",
      "\n",
      "**1. Purpose and Functionality:**\n",
      "\n",
      "* **What is the agent's primary goal?**  Examples: Answering questions, performing tasks, generating creative content, controlling a game character, analyzing data, etc.\n",
      "* **What specific tasks will it perform?**  Be as detailed as possible. For example, if it's a customer service agent, list the types of customer queries it should handle.\n",
      "* **What level of autonomy are you aiming for?** Will the agent operate completely independently, or will there be human oversight?\n",
      "\n",
      "**2. Data and Knowledge:**\n",
      "\n",
      "* **What data will the agent need access to?**  Examples:  A specific knowledge base, a database, real-time data streams, files, APIs, etc.\n",
      "* **How structured is this data?**  Is it neatly organized in a database, or is it unstructured text?\n",
      "* **Will the agent need to learn and update its knowledge over time?**\n",
      "\n",
      "**3. Interaction and Interface:**\n",
      "\n",
      "* **How will users interact with the agent?**  Through a chat interface, voice commands, a graphical interface, API calls, etc.?\n",
      "* **What is the desired level of natural language understanding (NLU)?** Does it need to handle complex language, or are simple commands sufficient?\n",
      "* **Does the agent need to generate natural language responses?**\n",
      "\n",
      "**4. Development Platform and Tools:**\n",
      "\n",
      "* **What is your level of programming expertise?** Are you comfortable with Python and other relevant libraries?\n",
      "* **What resources are available to you?**  Computational power, cloud services, existing datasets, etc.\n",
      "\n",
      "\n",
      "**Example Scenarios and Tool Recommendations:**\n",
      "\n",
      "Let's illustrate with some examples:\n",
      "\n",
      "* **Scenario 1:  A research assistant that can answer questions based on a collection of scientific papers.**\n",
      "    * **Likely Tools:** LangChain with a vector database (e.g., Pinecone, Weaviate) to store embeddings of the papers.  This allows for semantic search and retrieval of relevant information.\n",
      "* **Scenario 2:  A customer service chatbot for a website.**\n",
      "    * **Likely Tools:**  Dialogflow, Rasa, or Botpress. These platforms specialize in building conversational agents and provide tools for managing dialogue flows.\n",
      "* **Scenario 3:  An agent that can automate tasks in a software application.**\n",
      "    * **Likely Tools:**  LangChain with integrations to the specific software APIs.  You might also consider tools like Microsoft's Power Automate or Zapier for simpler automations.\n",
      "* **Scenario 4:  An AI agent that plays a character in a text-based game.**\n",
      "    * **Likely Tools:**  LangChain, with a focus on prompt engineering to guide the agent's behavior and personality.\n",
      "\n",
      "\n",
      "Once you provide me with more details about your specific needs, I can give you more targeted advice on the best tools and approaches for building your custom AI agent.\n",
      "\n",
      "**************************************************USER**************************************************\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "\n",
      "YOUR QUERY:  I think i understand now. Thanks for help\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "**************************************************AGENT**************************************************\n",
      "\n",
      "EXPERT AGENT RESPONSE: You're welcome! I'm glad I could help clarify things.  Please don't hesitate to reach out if you have any more questions as you progress with your AI agent development.  Even a small detail about your project can often lead to more specific and helpful recommendations.  Good luck!\n",
      "\n",
      "**************************************************USER**************************************************\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "\n",
      "YOUR QUERY:  exit\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Ending the chat session.\n",
      "File 'Agent_output\\Q&A_Doubt_Session_20241117150253.md' created successfully.\n",
      "Q&A Session saved to Agent_output\\Q&A_Doubt_Session_20241117150253.md\n",
      "{'category': 'Category: Question\\n', 'response': 'Agent_output\\\\Q&A_Doubt_Session_20241117150253.md'}\n"
     ]
    }
   ],
   "source": [
    "query = \"I am confused between Langgraph and CrewAI when to use what for Agent Creation?\"\n",
    "result = run_user_query(query)\n",
    "print(result)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "3a88c7a5-8e78-4098-9b10-03e2ec550ca6",
   "metadata": {},
   "source": [
    "## TEST CASE 3: Interview Question Discussion"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 519,
   "id": "ba349db1-fd86-4ea4-89e7-b9ecedbecbda",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Categorizing the customer query...\n",
      "Category: handle_interview_preparation\n",
      "Categorizing the customer query further...\n",
      "Category: interview_topics_questions\n",
      "\n",
      "Starting the Interview question preparation. Type 'exit' to end the session.\n",
      "\n",
      "\n",
      "\n",
      "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
      "\u001b[32;1m\u001b[1;3mTo best tailor interview questions for Generative AI job roles, I need some more information.  Please tell me:\n",
      "\n",
      "1. **What specific role are we targeting?** (e.g., Research Scientist, Machine Learning Engineer, Product Manager, Software Engineer focusing on Generative AI)  The questions will differ significantly depending on the role.\n",
      "\n",
      "2. **What is the seniority level?** (e.g., Intern, Junior, Mid-level, Senior)  The difficulty and depth of the questions should scale with experience.\n",
      "\n",
      "3. **What are the key technologies or areas of focus?** (e.g., Large Language Models (LLMs), Diffusion Models, Generative Adversarial Networks (GANs), specific applications like image generation, text generation, code generation)\n",
      "\n",
      "Once I have this information, I can generate a more relevant and effective set of interview questions.\n",
      "\u001b[0m\n",
      "\n",
      "\u001b[1m> Finished chain.\u001b[0m\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "You:  For Mid-level,LLM and Gen AI other techs.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Starting the Interview question preparation. Type 'exit' to end the session.\n",
      "\n",
      "\n",
      "\n",
      "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
      "\u001b[32;1m\u001b[1;3mOkay, focusing on a **Mid-level** role with expertise in **LLMs** and other **Generative AI technologies**, here's a markdown file containing interview questions.  This covers a range of topics, from foundational knowledge to practical application and problem-solving.  Remember that the specific questions asked should be adapted based on the candidate's resume and the specific needs of the role.\n",
      "\n",
      "\n",
      "```markdown\n",
      "# Generative AI Interview Questions - Mid-Level\n",
      "\n",
      "This document outlines interview questions for a mid-level Generative AI role, encompassing expertise in LLMs and other generative AI technologies.\n",
      "\n",
      "\n",
      "## I. Foundational Knowledge\n",
      "\n",
      "1. **Explain the difference between autoregressive and diffusion models.  Give examples of each and discuss their strengths and weaknesses.**  (Tests understanding of core model architectures)\n",
      "\n",
      "2. **Describe the Transformer architecture.  Explain the role of self-attention and positional encoding.** (Tests understanding of the backbone of many LLMs)\n",
      "\n",
      "3. **What are some common challenges in training LLMs? Discuss methods for mitigating these challenges (e.g., overfitting, vanishing gradients, computational cost).** (Tests practical experience and problem-solving skills)\n",
      "\n",
      "4. **Explain the concept of attention mechanisms. How do they improve upon previous sequence-to-sequence models?** (Tests understanding of a key component of LLMs)\n",
      "\n",
      "5. **What are different ways to evaluate the performance of a generative model? Discuss both quantitative and qualitative metrics.** (Tests understanding of evaluation methodologies)\n",
      "\n",
      "\n",
      "## II.  LLM Specifics\n",
      "\n",
      "1. **Explain the concept of prompt engineering.  Provide examples of effective prompting techniques and discuss their impact on model output.** (Tests practical experience with LLMs)\n",
      "\n",
      "2. **Describe different methods for fine-tuning LLMs for specific tasks.  Discuss the trade-offs between different approaches.** (Tests knowledge of adaptation techniques)\n",
      "\n",
      "3. **What are some common biases found in LLMs?  How can these biases be mitigated during training or deployment?** (Tests awareness of ethical considerations)\n",
      "\n",
      "4. **Discuss different methods for handling long context lengths in LLMs. What are the limitations and potential solutions?** (Tests understanding of scalability challenges)\n",
      "\n",
      "5. **Compare and contrast different LLM architectures (e.g., GPT, BERT, LaMDA). What are their strengths and weaknesses for different applications?** (Tests broad knowledge of LLM landscape)\n",
      "\n",
      "\n",
      "## III.  Other Generative AI Technologies\n",
      "\n",
      "1. **Explain the concept of Generative Adversarial Networks (GANs).  Describe the roles of the generator and discriminator.** (Tests understanding of a different generative model architecture)\n",
      "\n",
      "2. **Describe the process of generating images using diffusion models.  What are the advantages and disadvantages compared to GANs?** (Tests knowledge of another generative model)\n",
      "\n",
      "3. **Discuss the ethical implications of generative AI, including potential for misuse and bias amplification.** (Tests awareness of responsible AI development)\n",
      "\n",
      "\n",
      "## IV.  Practical Application and Problem Solving\n",
      "\n",
      "1. **Describe a project where you used generative AI to solve a real-world problem.  What were the challenges, and how did you overcome them?** (Tests practical experience and problem-solving abilities – this should be a detailed discussion)\n",
      "\n",
      "2. **Design a system for generating realistic human faces using generative AI.  Discuss the technical challenges and potential solutions.** (Tests ability to design a generative AI system)\n",
      "\n",
      "3. **You are tasked with improving the efficiency of an existing LLM.  Describe your approach, considering factors such as computational resources, model size, and performance metrics.** (Tests practical problem-solving skills)\n",
      "\n",
      "4. **How would you approach debugging a generative model that is producing nonsensical or low-quality outputs?** (Tests practical troubleshooting skills)\n",
      "\n",
      "\n",
      "## V.  System Design and Deployment\n",
      "\n",
      "1.  **Design a system for deploying an LLM as an API.  Consider aspects such as scalability, latency, and security.** (Tests understanding of deployment considerations)\n",
      "\n",
      "2. **Discuss strategies for monitoring and maintaining the performance of a deployed generative AI model.** (Tests understanding of model lifecycle management)\n",
      "\n",
      "\n",
      "This list is not exhaustive, and the specific questions asked should be tailored to the candidate's experience and the requirements of the role.  Remember to also assess soft skills such as communication, teamwork, and problem-solving abilities throughout the interview process.\n",
      "```\n",
      "\u001b[0m\n",
      "\n",
      "\u001b[1m> Finished chain.\u001b[0m\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "You:  Can you give me questions for Langchain and Langgraph.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Starting the Interview question preparation. Type 'exit' to end the session.\n",
      "\n",
      "\n",
      "\n",
      "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
      "\u001b[32;1m\u001b[1;3mOkay, let's add some questions specifically targeting Langchain and LangGraph to the existing interview questions.  We'll integrate them into the existing markdown structure.  Since LangChain and LangGraph are relatively new, the questions will focus on understanding their core concepts and how they relate to broader Generative AI principles.\n",
      "\n",
      "\n",
      "```markdown\n",
      "# Generative AI Interview Questions - Mid-Level\n",
      "\n",
      "This document outlines interview questions for a mid-level Generative AI role, encompassing expertise in LLMs and other generative AI technologies, including LangChain and LangGraph.\n",
      "\n",
      "\n",
      "## I. Foundational Knowledge\n",
      "\n",
      "[Existing questions from previous response]\n",
      "\n",
      "\n",
      "## II.  LLM Specifics\n",
      "\n",
      "[Existing questions from previous response]\n",
      "\n",
      "\n",
      "## III.  Other Generative AI Technologies\n",
      "\n",
      "[Existing questions from previous response]\n",
      "\n",
      "\n",
      "## IV. LangChain and LangGraph\n",
      "\n",
      "1. **What is LangChain, and what are its key components?  Describe how it simplifies the development of LLM-powered applications.** (Tests understanding of LangChain's core functionality)\n",
      "\n",
      "2. **Explain the concept of chains and agents in LangChain.  Provide examples of how they can be used to build complex LLM applications.** (Tests understanding of LangChain's architectural patterns)\n",
      "\n",
      "3. **How does LangChain handle memory in LLM applications?  Discuss different memory types and their use cases.** (Tests understanding of state management in LangChain)\n",
      "\n",
      "4. **Describe how you would use LangChain to build an application that integrates multiple LLMs or other tools (e.g., databases, APIs).** (Tests ability to apply LangChain in a practical scenario)\n",
      "\n",
      "5. **What is LangGraph? How does it differ from other knowledge graph approaches, and what are its advantages and disadvantages for building LLM applications?** (Tests understanding of LangGraph's unique features)\n",
      "\n",
      "6. **How can LangGraph be used to enhance the capabilities of LLMs?  Provide specific examples of how it improves reasoning, knowledge access, or context management.** (Tests understanding of LangGraph's applications)\n",
      "\n",
      "7. **Compare and contrast LangChain and LangGraph.  Discuss scenarios where one might be preferred over the other.** (Tests ability to compare and contrast different tools)\n",
      "\n",
      "8. **Describe a potential project where you would utilize both LangChain and LangGraph to build a sophisticated LLM-powered application.  Outline the architecture and key components.** (Tests ability to design a complex system using both tools)\n",
      "\n",
      "\n",
      "## V.  Practical Application and Problem Solving\n",
      "\n",
      "[Existing questions from previous response]\n",
      "\n",
      "\n",
      "## VI.  System Design and Deployment\n",
      "\n",
      "[Existing questions from previous response]\n",
      "\n",
      "\n",
      "This list is not exhaustive, and the specific questions asked should be tailored to the candidate's experience and the requirements of the role.  Remember to also assess soft skills such as communication, teamwork, and problem-solving abilities throughout the interview process.\n",
      "```\n",
      "\u001b[0m\n",
      "\n",
      "\u001b[1m> Finished chain.\u001b[0m\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "You:  exit\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Starting the Interview question preparation. Type 'exit' to end the session.\n",
      "\n",
      "Ending the conversation. Goodbye!\n",
      "File 'Agent_output\\Interview_questions_20241117151913.md' created successfully.\n",
      "Interviews question saved to Agent_output\\Interview_questions_20241117151913.md\n"
     ]
    },
    {
     "data": {
      "text/markdown": [
       "To best tailor interview questions for Generative AI job roles, I need some more information.  Please tell me:\n",
       "\n",
       "1. **What specific role are we targeting?** (e.g., Research Scientist, Machine Learning Engineer, Product Manager, Software Engineer focusing on Generative AI)  The questions will differ significantly depending on the role.\n",
       "\n",
       "2. **What is the seniority level?** (e.g., Intern, Junior, Mid-level, Senior)  The difficulty and depth of the questions should scale with experience.\n",
       "\n",
       "3. **What are the key technologies or areas of focus?** (e.g., Large Language Models (LLMs), Diffusion Models, Generative Adversarial Networks (GANs), specific applications like image generation, text generation, code generation)\n",
       "\n",
       "Once I have this information, I can generate a more relevant and effective set of interview questions.\n",
       "Okay, focusing on a **Mid-level** role with expertise in **LLMs** and other **Generative AI technologies**, here's a markdown file containing interview questions.  This covers a range of topics, from foundational knowledge to practical application and problem-solving.  Remember that the specific questions asked should be adapted based on the candidate's resume and the specific needs of the role.\n",
       "\n",
       "\n",
       "\n",
       "# Generative AI Interview Questions - Mid-Level\n",
       "\n",
       "This document outlines interview questions for a mid-level Generative AI role, encompassing expertise in LLMs and other generative AI technologies.\n",
       "\n",
       "\n",
       "## I. Foundational Knowledge\n",
       "\n",
       "1. **Explain the difference between autoregressive and diffusion models.  Give examples of each and discuss their strengths and weaknesses.**  (Tests understanding of core model architectures)\n",
       "\n",
       "2. **Describe the Transformer architecture.  Explain the role of self-attention and positional encoding.** (Tests understanding of the backbone of many LLMs)\n",
       "\n",
       "3. **What are some common challenges in training LLMs? Discuss methods for mitigating these challenges (e.g., overfitting, vanishing gradients, computational cost).** (Tests practical experience and problem-solving skills)\n",
       "\n",
       "4. **Explain the concept of attention mechanisms. How do they improve upon previous sequence-to-sequence models?** (Tests understanding of a key component of LLMs)\n",
       "\n",
       "5. **What are different ways to evaluate the performance of a generative model? Discuss both quantitative and qualitative metrics.** (Tests understanding of evaluation methodologies)\n",
       "\n",
       "\n",
       "## II.  LLM Specifics\n",
       "\n",
       "1. **Explain the concept of prompt engineering.  Provide examples of effective prompting techniques and discuss their impact on model output.** (Tests practical experience with LLMs)\n",
       "\n",
       "2. **Describe different methods for fine-tuning LLMs for specific tasks.  Discuss the trade-offs between different approaches.** (Tests knowledge of adaptation techniques)\n",
       "\n",
       "3. **What are some common biases found in LLMs?  How can these biases be mitigated during training or deployment?** (Tests awareness of ethical considerations)\n",
       "\n",
       "4. **Discuss different methods for handling long context lengths in LLMs. What are the limitations and potential solutions?** (Tests understanding of scalability challenges)\n",
       "\n",
       "5. **Compare and contrast different LLM architectures (e.g., GPT, BERT, LaMDA). What are their strengths and weaknesses for different applications?** (Tests broad knowledge of LLM landscape)\n",
       "\n",
       "\n",
       "## III.  Other Generative AI Technologies\n",
       "\n",
       "1. **Explain the concept of Generative Adversarial Networks (GANs).  Describe the roles of the generator and discriminator.** (Tests understanding of a different generative model architecture)\n",
       "\n",
       "2. **Describe the process of generating images using diffusion models.  What are the advantages and disadvantages compared to GANs?** (Tests knowledge of another generative model)\n",
       "\n",
       "3. **Discuss the ethical implications of generative AI, including potential for misuse and bias amplification.** (Tests awareness of responsible AI development)\n",
       "\n",
       "\n",
       "## IV.  Practical Application and Problem Solving\n",
       "\n",
       "1. **Describe a project where you used generative AI to solve a real-world problem.  What were the challenges, and how did you overcome them?** (Tests practical experience and problem-solving abilities – this should be a detailed discussion)\n",
       "\n",
       "2. **Design a system for generating realistic human faces using generative AI.  Discuss the technical challenges and potential solutions.** (Tests ability to design a generative AI system)\n",
       "\n",
       "3. **You are tasked with improving the efficiency of an existing LLM.  Describe your approach, considering factors such as computational resources, model size, and performance metrics.** (Tests practical problem-solving skills)\n",
       "\n",
       "4. **How would you approach debugging a generative model that is producing nonsensical or low-quality outputs?** (Tests practical troubleshooting skills)\n",
       "\n",
       "\n",
       "## V.  System Design and Deployment\n",
       "\n",
       "1.  **Design a system for deploying an LLM as an API.  Consider aspects such as scalability, latency, and security.** (Tests understanding of deployment considerations)\n",
       "\n",
       "2. **Discuss strategies for monitoring and maintaining the performance of a deployed generative AI model.** (Tests understanding of model lifecycle management)\n",
       "\n",
       "\n",
       "This list is not exhaustive, and the specific questions asked should be tailored to the candidate's experience and the requirements of the role.  Remember to also assess soft skills such as communication, teamwork, and problem-solving abilities throughout the interview process.\n",
       "```\n",
       "Okay, let's add some questions specifically targeting Langchain and LangGraph to the existing interview questions.  We'll integrate them into the existing markdown structure.  Since LangChain and LangGraph are relatively new, the questions will focus on understanding their core concepts and how they relate to broader Generative AI principles.\n",
       "\n",
       "\n",
       "\n",
       "# Generative AI Interview Questions - Mid-Level\n",
       "\n",
       "This document outlines interview questions for a mid-level Generative AI role, encompassing expertise in LLMs and other generative AI technologies, including LangChain and LangGraph.\n",
       "\n",
       "\n",
       "## I. Foundational Knowledge\n",
       "\n",
       "[Existing questions from previous response]\n",
       "\n",
       "\n",
       "## II.  LLM Specifics\n",
       "\n",
       "[Existing questions from previous response]\n",
       "\n",
       "\n",
       "## III.  Other Generative AI Technologies\n",
       "\n",
       "[Existing questions from previous response]\n",
       "\n",
       "\n",
       "## IV. LangChain and LangGraph\n",
       "\n",
       "1. **What is LangChain, and what are its key components?  Describe how it simplifies the development of LLM-powered applications.** (Tests understanding of LangChain's core functionality)\n",
       "\n",
       "2. **Explain the concept of chains and agents in LangChain.  Provide examples of how they can be used to build complex LLM applications.** (Tests understanding of LangChain's architectural patterns)\n",
       "\n",
       "3. **How does LangChain handle memory in LLM applications?  Discuss different memory types and their use cases.** (Tests understanding of state management in LangChain)\n",
       "\n",
       "4. **Describe how you would use LangChain to build an application that integrates multiple LLMs or other tools (e.g., databases, APIs).** (Tests ability to apply LangChain in a practical scenario)\n",
       "\n",
       "5. **What is LangGraph? How does it differ from other knowledge graph approaches, and what are its advantages and disadvantages for building LLM applications?** (Tests understanding of LangGraph's unique features)\n",
       "\n",
       "6. **How can LangGraph be used to enhance the capabilities of LLMs?  Provide specific examples of how it improves reasoning, knowledge access, or context management.** (Tests understanding of LangGraph's applications)\n",
       "\n",
       "7. **Compare and contrast LangChain and LangGraph.  Discuss scenarios where one might be preferred over the other.** (Tests ability to compare and contrast different tools)\n",
       "\n",
       "8. **Describe a potential project where you would utilize both LangChain and LangGraph to build a sophisticated LLM-powered application.  Outline the architecture and key components.** (Tests ability to design a complex system using both tools)\n",
       "\n",
       "\n",
       "## V.  Practical Application and Problem Solving\n",
       "\n",
       "[Existing questions from previous response]\n",
       "\n",
       "\n",
       "## VI.  System Design and Deployment\n",
       "\n",
       "[Existing questions from previous response]\n",
       "\n",
       "\n",
       "This list is not exhaustive, and the specific questions asked should be tailored to the candidate's experience and the requirements of the role.  Remember to also assess soft skills such as communication, teamwork, and problem-solving abilities throughout the interview process.\n",
       "```\n"
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'category': 'Category: Question\\n', 'response': 'Agent_output\\\\Interview_questions_20241117151913.md'}\n"
     ]
    }
   ],
   "source": [
    "query = \"I want to discussion Interview question for Gen AI job roles.\"\n",
    "result = run_user_query(query)\n",
    "print(result)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "debd628e-730b-4627-a8c6-e00a6022a54a",
   "metadata": {},
   "source": [
    "## TEST CASE 4: Mock Interview with Evaluation Feedback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "id": "728b6877-9383-470f-ad01-2c7e5705593b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Categorizing the customer query...\n",
      "Category: handle_interview_preparation\n",
      "Categorizing the customer query further...\n",
      "Category: mock_interview\n",
      "\n",
      "Starting the mock interview. Type 'exit' to end the session.\n",
      "\n",
      "\n",
      "Interviewer: Great! Welcome.  My name is Alex, and I'll be conducting your interview today for the Generative AI Engineer position.  Let's start with a brief introduction from you. Tell me about yourself and your experience relevant to this role.  We have your resume, but I'd like to hear it in your own words.  Keep it to about 2-3 minutes.\n",
      "\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "\n",
      "Candidate:  I’m Karan, and I’m currently focused on advancing my skills and contributions in Generative AI. My journey started with a solid foundation in Computer Science, where I developed a strong interest in AI and machine learning. Over the years, I’ve built a range of projects that have helped me gain expertise in several core areas of this role.  One of my most impactful experiences was working on an end-to-end Legal Case Identification system for Verinext and Pondlehocky. This project involved integrating Gen-AI to automate case assignments. I led a team to develop a pipeline that included NLP, GPT, prompt engineering, and Litify DB integration, ultimately enabling efficient case handling through an AI-driven model.  I’ve also worked on an Automatic Number Plate Recognition project for NPCI. This required designing and deploying a real-time ANPR solution using transfer learning, Deepstream, and OCR. I collaborated closely with my team on model improvement and pipeline optimization to ensure the project could effectively replace existing toll services.  Beyond my technical skills, I bring a strategic approach to problem-solving and a knack for diving into the nuances of machine learning models, optimizing them to fit specific business needs. I’m passionate about harnessing AI to address real-world challenges, and I’m excited about the possibility of contributing my skills and learning further with your team.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Interviewer: That's a strong introduction, Karan.  Your projects demonstrate a good understanding of the practical applications of Generative AI. Let's delve a bit deeper.  You mentioned prompt engineering in your Legal Case Identification project. Can you describe a challenging prompt engineering problem you faced and how you solved it?  What metrics did you use to evaluate the success of your prompt engineering efforts?\n",
      "\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "\n",
      "Candidate:  Certainly, Alex.  In the Legal Case Identification project, a significant challenge in prompt engineering arose when trying to accurately classify complex case types from unstructured legal data. The prompts needed to be crafted carefully to balance specificity with flexibility, as the language in legal documents can vary widely. One particular issue was handling nuanced legal terms and context-specific language that often influenced the interpretation of a case’s category.  To address this, I experimented with structured prompt templates that included both contextual keywords and specific qualifiers. For example, rather than just asking the model to classify a \"personal injury\" case, I structured prompts to include additional context like, \"Identify if this case involves physical harm due to an accident or negligence,\" which guided the model to focus on relevant legal scenarios.  For evaluation, I used precision, recall, and F1 scores to measure how accurately the prompts identified cases correctly across categories. Additionally, we monitored the model’s consistency by testing it on a set of challenging cases with subtle differences to see if the prompts led to consistent responses. I also tracked user feedback from legal experts who verified if the classifications aligned with practical expectations.  This iterative approach, along with close collaboration with subject matter experts, allowed me to refine prompts effectively. It was a great learning experience in balancing prompt detail and adaptability while ensuring reliable, high-quality results for the client.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Interviewer: Excellent.  That demonstrates a good understanding of prompt engineering and evaluation metrics.  Now, let's shift gears slightly.  Generative AI models can sometimes produce biased or inaccurate outputs.  How would you address such issues in a production environment?\n",
      "\n",
      "\n",
      "\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "\n",
      "Candidate:  Thank you, Alex; that’s an important consideration.  In a production environment, handling bias and inaccuracies in Generative AI outputs requires a proactive, multi-layered approach. Here’s how I’d approach it:  Data and Model Auditing: I’d start by auditing the training data to identify and mitigate any inherent biases. This might involve using a diverse dataset or adding counterexamples to balance the perspectives presented in the model’s outputs. Model fine-tuning can help adjust any biases found in pre-trained models by focusing on more representative or neutral datasets.  Prompt Design and Constraints: In prompt engineering, I’d craft prompts that guide the model toward neutral and accurate responses. For instance, setting constraints in the prompt to avoid speculative or potentially biased language can help. Additionally, I’d use prompt templates that explicitly frame questions to elicit factual and context-appropriate information.  Post-Processing and Filtering: After generating outputs, I’d implement a filtering or post-processing layer that flags any content that seems potentially biased or incorrect. For example, sentiment analysis or bias detection algorithms can help flag outputs, allowing for an additional layer of human review or correction before the final output is published.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Interviewer: Good.  You've covered some key aspects.  One last question:  Describe your preferred approach to staying up-to-date with the rapidly evolving field of Generative AI.\n",
      "\n",
      "\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "\n",
      "Candidate:  To stay current in Generative AI, I rely on a structured approach that combines both learning from established resources and exploring emerging trends:  Research Papers and Journals: I regularly read papers from sources like arXiv and conferences such as NeurIPS, ICML, and CVPR. Following key researchers and institutions helps me stay updated on cutting-edge techniques, and I make it a habit to read and analyze at least one new paper each week, focusing on both theoretical advances and practical applications.  Community and Open-Source Contributions: I participate in open-source projects on platforms like GitHub, which keeps me connected with the latest tools and libraries. Additionally, contributing to or following repositories in frameworks like Hugging Face or PyTorch gives me hands-on exposure to practical advancements in model development and deployment.  Online Courses and Workshops: I engage in online courses or certifications, especially when new architectures or methodologies gain traction, such as diffusion models or prompt engineering techniques. Platforms like Coursera and specialized workshops provide structured, in-depth content that complements hands-on experience.  Podcasts and Newsletters: I subscribe to AI-focused newsletters like \"The Batch\" by Andrew Ng and listen to podcasts such as \"Lex Fridman\" and \"Data Skeptic,\" which often feature industry experts discussing the latest trends and breakthroughs. This is a great way to get a broader perspective on AI developments and practical applications.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Interviewer: Excellent. Thank you, Karan. That concludes our interview.  I appreciate you taking the time to speak with me today.\n",
      "\n",
      "\n",
      "**Evaluation:**\n",
      "\n",
      "Karan demonstrated a strong understanding of Generative AI concepts and their practical application. His project descriptions were detailed and showcased his ability to tackle complex problems and evaluate results effectively.  He articulated a well-rounded approach to addressing bias and maintaining accuracy in production environments. His commitment to continuous learning is also commendable. While he could have provided more specific examples in some areas, overall, he presented himself as a strong candidate for the Generative AI Engineer position.  I would recommend him for the next stage of the interview process.\n",
      "\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "\n",
      "Candidate:  exit\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Ending the interview session.\n",
      "File 'Agent_output\\Mock_Interview_20241117174111.md' created successfully.\n",
      "Mock Interview saved to Agent_output\\Mock_Interview_20241117174111.md\n"
     ]
    },
    {
     "data": {
      "text/markdown": [
       "Candidate: I am ready for the interview.\n",
       " \n",
       "\n",
       "Interviewer: Great! Welcome.  My name is Alex, and I'll be conducting your interview today for the Generative AI Engineer position.  Let's start with a brief introduction from you. Tell me about yourself and your experience relevant to this role.  We have your resume, but I'd like to hear it in your own words.  Keep it to about 2-3 minutes.\n",
       " \n",
       "\n",
       "Candidate: I’m Karan, and I’m currently focused on advancing my skills and contributions in Generative AI. My journey started with a solid foundation in Computer Science, where I developed a strong interest in AI and machine learning. Over the years, I’ve built a range of projects that have helped me gain expertise in several core areas of this role.  One of my most impactful experiences was working on an end-to-end Legal Case Identification system for Verinext and Pondlehocky. This project involved integrating Gen-AI to automate case assignments. I led a team to develop a pipeline that included NLP, GPT, prompt engineering, and Litify DB integration, ultimately enabling efficient case handling through an AI-driven model.  I’ve also worked on an Automatic Number Plate Recognition project for NPCI. This required designing and deploying a real-time ANPR solution using transfer learning, Deepstream, and OCR. I collaborated closely with my team on model improvement and pipeline optimization to ensure the project could effectively replace existing toll services.  Beyond my technical skills, I bring a strategic approach to problem-solving and a knack for diving into the nuances of machine learning models, optimizing them to fit specific business needs. I’m passionate about harnessing AI to address real-world challenges, and I’m excited about the possibility of contributing my skills and learning further with your team. \n",
       "\n",
       "Interviewer: That's a strong introduction, Karan.  Your projects demonstrate a good understanding of the practical applications of Generative AI. Let's delve a bit deeper.  You mentioned prompt engineering in your Legal Case Identification project. Can you describe a challenging prompt engineering problem you faced and how you solved it?  What metrics did you use to evaluate the success of your prompt engineering efforts?\n",
       " \n",
       "\n",
       "Candidate: Certainly, Alex.  In the Legal Case Identification project, a significant challenge in prompt engineering arose when trying to accurately classify complex case types from unstructured legal data. The prompts needed to be crafted carefully to balance specificity with flexibility, as the language in legal documents can vary widely. One particular issue was handling nuanced legal terms and context-specific language that often influenced the interpretation of a case’s category.  To address this, I experimented with structured prompt templates that included both contextual keywords and specific qualifiers. For example, rather than just asking the model to classify a \"personal injury\" case, I structured prompts to include additional context like, \"Identify if this case involves physical harm due to an accident or negligence,\" which guided the model to focus on relevant legal scenarios.  For evaluation, I used precision, recall, and F1 scores to measure how accurately the prompts identified cases correctly across categories. Additionally, we monitored the model’s consistency by testing it on a set of challenging cases with subtle differences to see if the prompts led to consistent responses. I also tracked user feedback from legal experts who verified if the classifications aligned with practical expectations.  This iterative approach, along with close collaboration with subject matter experts, allowed me to refine prompts effectively. It was a great learning experience in balancing prompt detail and adaptability while ensuring reliable, high-quality results for the client. \n",
       "\n",
       "Interviewer: Excellent.  That demonstrates a good understanding of prompt engineering and evaluation metrics.  Now, let's shift gears slightly.  Generative AI models can sometimes produce biased or inaccurate outputs.  How would you address such issues in a production environment?\n",
       "\n",
       "\n",
       " \n",
       "\n",
       "Candidate: Thank you, Alex; that’s an important consideration.  In a production environment, handling bias and inaccuracies in Generative AI outputs requires a proactive, multi-layered approach. Here’s how I’d approach it:  Data and Model Auditing: I’d start by auditing the training data to identify and mitigate any inherent biases. This might involve using a diverse dataset or adding counterexamples to balance the perspectives presented in the model’s outputs. Model fine-tuning can help adjust any biases found in pre-trained models by focusing on more representative or neutral datasets.  Prompt Design and Constraints: In prompt engineering, I’d craft prompts that guide the model toward neutral and accurate responses. For instance, setting constraints in the prompt to avoid speculative or potentially biased language can help. Additionally, I’d use prompt templates that explicitly frame questions to elicit factual and context-appropriate information.  Post-Processing and Filtering: After generating outputs, I’d implement a filtering or post-processing layer that flags any content that seems potentially biased or incorrect. For example, sentiment analysis or bias detection algorithms can help flag outputs, allowing for an additional layer of human review or correction before the final output is published. \n",
       "\n",
       "Interviewer: Good.  You've covered some key aspects.  One last question:  Describe your preferred approach to staying up-to-date with the rapidly evolving field of Generative AI.\n",
       "\n",
       " \n",
       "\n",
       "Candidate: To stay current in Generative AI, I rely on a structured approach that combines both learning from established resources and exploring emerging trends:  Research Papers and Journals: I regularly read papers from sources like arXiv and conferences such as NeurIPS, ICML, and CVPR. Following key researchers and institutions helps me stay updated on cutting-edge techniques, and I make it a habit to read and analyze at least one new paper each week, focusing on both theoretical advances and practical applications.  Community and Open-Source Contributions: I participate in open-source projects on platforms like GitHub, which keeps me connected with the latest tools and libraries. Additionally, contributing to or following repositories in frameworks like Hugging Face or PyTorch gives me hands-on exposure to practical advancements in model development and deployment.  Online Courses and Workshops: I engage in online courses or certifications, especially when new architectures or methodologies gain traction, such as diffusion models or prompt engineering techniques. Platforms like Coursera and specialized workshops provide structured, in-depth content that complements hands-on experience.  Podcasts and Newsletters: I subscribe to AI-focused newsletters like \"The Batch\" by Andrew Ng and listen to podcasts such as \"Lex Fridman\" and \"Data Skeptic,\" which often feature industry experts discussing the latest trends and breakthroughs. This is a great way to get a broader perspective on AI developments and practical applications. \n",
       "\n",
       "Interviewer: Excellent. Thank you, Karan. That concludes our interview.  I appreciate you taking the time to speak with me today.\n",
       "\n",
       "\n",
       "**Evaluation:**\n",
       "\n",
       "Karan demonstrated a strong understanding of Generative AI concepts and their practical application. His project descriptions were detailed and showcased his ability to tackle complex problems and evaluate results effectively.  He articulated a well-rounded approach to addressing bias and maintaining accuracy in production environments. His commitment to continuous learning is also commendable. While he could have provided more specific examples in some areas, overall, he presented himself as a strong candidate for the Generative AI Engineer position.  I would recommend him for the next stage of the interview process.\n",
       " \n",
       "\n",
       "Candidate: exit \n"
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "{'category': 'Category: Mock\\n',\n",
       " 'response': 'Agent_output\\\\Mock_Interview_20241117174111.md'}"
      ]
     },
     "execution_count": 61,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Ending the conversation. Goodbye!\n",
      "File 'Agent_output\\Interview_questions_20241117005746.md' created successfully.\n"
     ]
    },
    {
     "data": {
      "text/markdown": [
       "To best help you prepare for your Generative AI interview, I need some more information.  Please tell me:\n",
       "\n",
       "1. **What is your target role?** (e.g., Research Scientist, Software Engineer, Product Manager, etc.)  The questions will vary significantly depending on the role.\n",
       "\n",
       "2. **What is your experience level?** (e.g., Intern, Junior, Mid-level, Senior)  This will help tailor the difficulty of the questions.\n",
       "\n",
       "3. **Which specific Generative AI areas are you most familiar with?** (e.g., Large Language Models, Diffusion Models, Generative Adversarial Networks, etc.)  Focusing on your strengths will maximize your chances of success.\n",
       "\n",
       "4. **Are there any specific companies or teams you're interviewing with?** Knowing the company's focus can help me tailor the questions to their specific interests.\n",
       "\n",
       "\n",
       "Once I have this information, I can generate a list of relevant interview questions and potential answers, along with references and links to helpful resources.  I will organize this into a markdown (.md) file.\n",
       "Okay, given that you're a mid-level Generative AI Engineer focusing on LLMs, GANs, NLP, and ML, I can create a tailored set of interview questions.  I will categorize them for clarity.  Note that some questions may touch upon multiple areas.  I won't provide complete answers here, as that would be too extensive, but I'll give you pointers to guide your preparation.\n",
       "\n",
       "\n",
       "# Generative AI Engineer Interview Questions (Mid-Level)\n",
       "\n",
       "This document outlines potential interview questions for a mid-level Generative AI Engineer role, focusing on LLMs, GANs, NLP, and ML.  Remember to tailor your answers to your specific experiences and projects.\n",
       "\n",
       "## I. Large Language Models (LLMs)\n",
       "\n",
       "**A. Foundational Understanding:**\n",
       "\n",
       "1. **Explain the architecture of a Transformer network.  Discuss the role of self-attention and its computational complexity.**  *(Focus on encoder-decoder structure, attention mechanisms, positional encoding, and computational challenges like quadratic complexity with naive attention.)*\n",
       "\n",
       "2. **Compare and contrast different LLM architectures (e.g., GPT, BERT, T5).  Highlight their strengths and weaknesses for different tasks.** *(Consider differences in training objectives, autoregressive vs. masked language modeling, and suitability for various NLP tasks.)*\n",
       "\n",
       "3. **What are some common challenges in training LLMs? Discuss methods to mitigate issues like vanishing gradients, overfitting, and catastrophic forgetting.** *(Address gradient clipping, regularization techniques, transfer learning, and continual learning strategies.)*\n",
       "\n",
       "\n",
       "**B. Advanced Topics & Applications:**\n",
       "\n",
       "4. **Describe different methods for prompting LLMs to improve performance and control the generated text.  Give examples of few-shot, zero-shot, and chain-of-thought prompting.** *(Discuss prompt engineering techniques, including various prompting strategies and their effectiveness.)*\n",
       "\n",
       "5. **Explain how reinforcement learning can be used to fine-tune LLMs.  Discuss the role of reward models and algorithms like Proximal Policy Optimization (PPO).** *(Focus on RLHF (Reinforcement Learning from Human Feedback) and its application in aligning LLMs with human preferences.)*\n",
       "\n",
       "6. **Discuss the ethical considerations surrounding LLMs, such as bias, toxicity, and misinformation.  How can these issues be addressed?** *(Consider bias mitigation techniques, safety guidelines, and responsible AI practices.)*\n",
       "\n",
       "7. **Describe your experience with specific LLM frameworks (e.g., Hugging Face Transformers, TensorFlow, PyTorch).** *(Highlight your practical experience with these frameworks and any relevant projects.)*\n",
       "\n",
       "\n",
       "## II. Generative Adversarial Networks (GANs)\n",
       "\n",
       "**A. Core Concepts:**\n",
       "\n",
       "1. **Explain the architecture and training process of a GAN. Describe the roles of the generator and discriminator.** *(Focus on the minimax game, backpropagation, and the adversarial training process.)*\n",
       "\n",
       "2. **What are some common problems encountered when training GANs (e.g., mode collapse, vanishing gradients)?  How can these be addressed?** *(Discuss techniques like Wasserstein GANs (WGANs), gradient penalty, and spectral normalization.)*\n",
       "\n",
       "3. **Compare and contrast different GAN architectures (e.g., DCGAN, StyleGAN, CycleGAN).  Discuss their applications and advantages.** *(Highlight architectural differences and their impact on generated output quality and diversity.)*\n",
       "\n",
       "\n",
       "**B. Advanced Topics & Applications:**\n",
       "\n",
       "4. **Explain how GANs can be used for image generation, image-to-image translation, and other generative tasks.** *(Provide specific examples and discuss the effectiveness of GANs in these applications.)*\n",
       "\n",
       "5. **Describe your experience with GAN training and optimization techniques. Discuss your experience with hyperparameter tuning and model evaluation metrics.** *(Highlight your practical experience and the tools/techniques used.)*\n",
       "\n",
       "\n",
       "## III. Natural Language Processing (NLP) and Machine Learning (ML)\n",
       "\n",
       "**A. NLP Techniques:**\n",
       "\n",
       "1. **Describe different NLP techniques used in preprocessing text data (e.g., tokenization, stemming, lemmatization).** *(Explain the purpose and impact of each technique.)*\n",
       "\n",
       "2. **Explain various word embedding techniques (e.g., Word2Vec, GloVe, FastText).  Discuss their strengths and weaknesses.** *(Focus on the underlying algorithms and their representational capabilities.)*\n",
       "\n",
       "3. **Discuss different sequence-to-sequence models and their applications in machine translation and text summarization.** *(Explain the encoder-decoder architecture and its use in these tasks.)*\n",
       "\n",
       "\n",
       "**B. ML Fundamentals:**\n",
       "\n",
       "1. **Explain different types of machine learning algorithms (e.g., supervised, unsupervised, reinforcement learning).** *(Provide examples and discuss their use cases.)*\n",
       "\n",
       "2. **Describe different model evaluation metrics (e.g., precision, recall, F1-score, AUC).** *(Explain the meaning and interpretation of these metrics.)*\n",
       "\n",
       "3. **Discuss your experience with model deployment and monitoring.** *(Highlight your practical experience in deploying models to production environments.)*\n",
       "\n",
       "\n",
       "## IV.  Project & Experience Based Questions\n",
       "\n",
       "1. **Describe a challenging project you worked on involving generative AI.  What were the key challenges, and how did you overcome them?**  *(Focus on a project that showcases your technical skills and problem-solving abilities.)*\n",
       "\n",
       "2. **Discuss your experience with version control (e.g., Git) and collaborative development.** *(Highlight your teamwork skills and experience with collaborative tools.)*\n",
       "\n",
       "3. **How do you stay up-to-date with the latest advancements in generative AI?** *(Discuss your approach to continuous learning and staying current in the field.)*\n",
       "\n",
       "\n",
       "This comprehensive list should provide a strong foundation for your interview preparation. Remember to practice explaining your projects and technical concepts clearly and concisely. Good luck!\n",
       "Let's focus on a few crucial topics and provide more detailed answers, keeping in mind the mid-level Generative AI Engineer role and your expertise in LLMs, GANs, NLP, and ML.  Remember that these are examples, and your answers should reflect your own experiences and understanding.\n",
       "\n",
       "**I.  LLMs:  Addressing Bias in LLMs**\n",
       "\n",
       "**Question:**  \"Large language models are known to exhibit biases present in their training data.  Describe several techniques used to mitigate bias in LLMs, and discuss their limitations.\"\n",
       "\n",
       "**Answer:**  \"Mitigating bias in LLMs is a complex and ongoing challenge.  Several strategies exist, each with limitations:\n",
       "\n",
       "* **Data Preprocessing:** Carefully curating the training data to remove or rebalance biased content.  This is resource-intensive and might not completely eliminate subtle biases.  Furthermore, identifying and removing all biased content is very difficult.\n",
       "\n",
       "* **Algorithmic Mitigation:**  Techniques like adversarial training can be employed.  This involves training a separate model to identify and counteract bias during the LLM's training.  However, designing effective adversarial training methods is challenging, and it's difficult to ensure complete bias removal.\n",
       "\n",
       "* **Post-Processing Techniques:**  These methods filter or modify the LLM's output after generation to reduce bias.  Examples include re-ranking generated responses based on fairness metrics or using classifiers to identify and flag biased text.  The drawback is that these methods might impact the fluency or coherence of the generated text.\n",
       "\n",
       "* **Reinforcement Learning from Human Feedback (RLHF):**  This approach involves training a reward model that ranks responses based on their fairness and lack of bias.  The LLM is then fine-tuned using this reward model via reinforcement learning. While effective, it requires significant human effort to create and evaluate the reward model, and human biases can still creep in.\n",
       "\n",
       "* **Fairness-Aware Metrics:**  Developing and using metrics that specifically quantify bias in LLM outputs is crucial.  This allows for better monitoring and evaluation of bias mitigation techniques.  However, designing truly comprehensive and unbiased metrics remains an area of active research.\n",
       "\n",
       "In summary, mitigating bias in LLMs is a multifaceted problem requiring a combination of approaches.  No single technique is a silver bullet, and continuous research is necessary to develop more effective and robust methods.\"\n",
       "\n",
       "\n",
       "**II. GANs:  Mode Collapse and its Solutions**\n",
       "\n",
       "**Question:** \"Explain the phenomenon of 'mode collapse' in GAN training.  Describe at least three different techniques to mitigate mode collapse.\"\n",
       "\n",
       "**Answer:** \"Mode collapse in GANs occurs when the generator learns to produce only a limited set of outputs, failing to capture the full diversity of the data distribution.  This results in the generator producing similar samples repeatedly, even when the input noise varies.  Several methods address this:\n",
       "\n",
       "* **Improved Architectures:**  Using architectures like Wasserstein GANs (WGANs) or improved versions like WGAN-GP (WGAN with Gradient Penalty) often helps.  These methods use different loss functions that encourage the discriminator to provide more informative gradients, thus preventing the generator from getting stuck in local optima.\n",
       "\n",
       "* **Regularization Techniques:**  Applying regularization techniques such as spectral normalization to the discriminator or weight clipping in WGANs can stabilize training and reduce mode collapse.  These methods constrain the discriminator's behavior, preventing it from becoming too powerful and overwhelming the generator.\n",
       "\n",
       "* **Mini-batch Discrimination:**  This technique involves feeding mini-batches of generated samples to the discriminator simultaneously.  This allows the discriminator to compare generated samples with each other, encouraging the generator to produce more diverse outputs.\n",
       "\n",
       "* **Label Smoothing:**  Adding noise to the discriminator's labels during training can help improve the stability of training and reduce mode collapse.\n",
       "\n",
       "* **Two Timescale Update Rule (TTUR):** This method uses different learning rates for the generator and the discriminator, often leading to more stable training dynamics.\n",
       "\n",
       "\n",
       "The choice of technique often depends on the specific GAN architecture and dataset.  A combination of methods is often most effective.\"\n",
       "\n",
       "\n",
       "**III. NLP & ML:  Explainable AI (XAI) in NLP**\n",
       "\n",
       "**Question:** \"Explain the importance of explainable AI (XAI) in NLP, particularly in the context of LLMs.  Describe some techniques used to make NLP models more interpretable.\"\n",
       "\n",
       "**Answer:** \"Explainability is crucial in NLP, especially with complex models like LLMs, because it increases trust, facilitates debugging, and allows for better model understanding and improvement.  Opaque models make it difficult to identify biases, errors, or unexpected behaviors.  Several techniques promote interpretability:\n",
       "\n",
       "* **Attention Mechanisms:**  Analyzing the attention weights in Transformer networks provides insights into which parts of the input sequence the model focuses on when generating output.  This can reveal the model's reasoning process.\n",
       "\n",
       "* **Saliency Maps:**  These highlight the input features that most influence the model's prediction.  In NLP, this could show which words or phrases are most important for a particular classification or generation task.\n",
       "\n",
       "* **Feature Importance Analysis:**  Techniques like SHAP (SHapley Additive exPlanations) or LIME (Local Interpretable Model-agnostic Explanations) can be used to quantify the contribution of individual features (words, phrases, etc.) to the model's prediction.\n",
       "\n",
       "* **Rule Extraction:**  For simpler models, rules can be extracted directly from the model's parameters, providing a more explicit representation of the model's decision-making process.\n",
       "\n",
       "* **Probing Classifiers:**  Training separate classifiers to predict specific aspects of the model's internal representations can reveal what information the model learns and how it uses it.\n",
       "\n",
       "\n",
       "While these methods offer insights, perfect explainability is often challenging to achieve, especially with highly complex models.  The choice of technique depends on the specific model and the desired level of interpretability.\"\n",
       "\n",
       "\n",
       "These expanded answers provide a more thorough response to common interview questions.  Remember to adapt them to your own experiences and projects.  Good luck!\n"
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "{'category': 'Category: Question\\n',\n",
       " 'response': 'Agent_output\\\\Interview_questions_20241117005746.md'}"
      ]
     },
     "execution_count": 276,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "query = \"I need mock interview to practice.\"\n",
    "result = run_user_query(query)\n",
    "result"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "4bc89a57-2c6e-4cff-a1e5-44a461df813a",
   "metadata": {},
   "source": [
    "## TEST CASE 5: Resume Modification Based on Job Description"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "987566c5-0db8-4033-9fa5-da939dd2f57f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Categorizing the customer query...\n",
      "Category: handle_resume_making\n",
      "\n",
      "Starting the Resume create session. Type 'exit' to end the session.\n",
      "\n",
      "\n",
      "\n",
      "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
      "\u001b[32;1m\u001b[1;3mI can definitely help you with that! To tailor your resume effectively, I'll need some information from you. First, could you please share:\n",
      "\n",
      "1. Your current resume (in any format).\n",
      "2. The job description of the role you're targeting.\n",
      "3. Your LinkedIn profile URL (optional).\n",
      "\u001b[0m\n",
      "\n",
      "\u001b[1m> Finished chain.\u001b[0m\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "You:  SKILLS:   Technical skills:   • Demonstrated work experience with natural language processing techniques to drive business value. Experience building user-centric AI products/features is highly valuable.    • Knowledge in Hypothesis testing, Statistical Methods, Sampling Theory, Experimental Design    • Familiarity with common advanced analysis tools – SQL & Python/R    • Demonstrated familiarity (work experience, GitHub account) with OOP concepts. Expertise in Python is a big plus.    • Experience with cloud computing (AWS) & MLOps is a plus.    • Strong knowledge of Machine Learning & Deep Learning   Soft/Leadership skills:   • Use business acumen and analytical skills to identify opportunities, estimate potential, layout strategy roadmaps to solve complex business problems.    • Be motivated to explore and identify opportunities from scratch by thinking backwards on problem solving by putting users and data at the center of analysis and decision making.    • Be responsible for using analytical techniques like Machine learning, Natural Language Processing, and advanced data visualizations to improve Asurion’s customers’ experiences.    • Deploy ML solutions in production environment    • Design statistical tests for product experiments, measure impact, derive insights and provide recommendations    • Work closely with product managers to identify and answer important product questions that help improve outcomes      Resume: KARAN SHRESTHA LinkedIn | 747-295-9996 | ks.karanshrestha@gmail.com | GitHub Seasoned Data Scientist skilled in Python, Machine Learning, NLP, and Deep Learning, Generative AI, Prompt Engineering with 4.5 years of experience. Proven ability in data science, excellent communication skills, and analytical skills. Effective team player with strong time management. Keen learner with a proactive attitude. Skills ____________________________________________________________________________________________ • Python | SQL | C# | Tensorflow | Pytorch | Numpy | NLTK | Pandas | Natural Language Processing | Machine Learning| Database query | • Computer Vision | Transformers | MXNet | Deep Learning | Anomaly detection | Scikit-learn | CNN | RNN | LSTM -Neural networks | • AWS | JavaScript | REST API | LLMs-Large Language Models | Keras | Predictive Modeling | Generative AI | Prompt Engineering | Neo4j • Tableau | Power BI | Fine Tuning | Problem solving | Web Development | PySpark | GCP | Azure | Statistics | Statistical modeling | R Experience _______________________________________________________________________________________ Senior Data Scientist FreightMango Gurgaon, India 06/2023 – 12/2023 • Applied data preprocessing techniques, including data collection and cleaning, to prepare datasets for Machine learning models. • Tuned and optimized datasets through advanced data preprocessing techniques for machine learning models. • Engineered an automated customer quotation document scanning pipeline, boosting customer acquisition by 40%. • Drive the vision of the product, ensuring alignment with business goals. Implement networking protocols and ensure robust product security. Conducted research to identify industry trends, applying findings to product innovation. • Applied machine learning (ML) algorithms to optimize finance-related applications, enhancing the accuracy and efficiency of financial forecasting models. • Developed ML models and maintained information systems to manage and process large data sets, ensuring data integrity and availability for machine learning projects. • Demonstrated a high level of attention to detail in data preprocessing, model tuning, and system optimization, ensuring accuracy and reliability in deliverables. • Collaborate with cross-functional teams to develop innovative solutions. Apply analytical skills to solve complex problems and improve basic functionalities. Managed social media campaigns, boosting engagement by 30% with targeted content strategies. Software Engineer DataNova Noida, India 02/2019 - 06/2023 • Conducted image annotation, text data cleaning, text vectorization, manipulation, and data preprocessing for Machine learning projects. • Feature Engineering and created data visualizations to support data-driven decisions. Execute on design, build, analysis and validation of  data analytics, modeling, and machine learning techniques • In-depth expertise with a rich repertoire of Regression, Classification, Clustering, and Dimensionality reduction algorithms. • Delivered pre-trained and fine-tuned neural network models using TensorFlow for internal projects, including object detection and automated chatbots using NLP. • Collaborated with cross-functional teams to deploy machine learning solutions, enhancing performance for perception tasks like Object  Detection. • Developed predictive models using algorithms such as Kernel-KNN, Decision Trees, Random Forest, Gradient Boosting, SVMs, and XgBoost. • Ensure scalability, security, and performance of the applications. Conduct thorough testing and monitoring to ensure high-quality deliverables. Developed and executed strategic plans, driving growth and improving efficiency. • Engage in code review processes to maintain code quality and best practices. Utilize metrics and analytics to measure and improve product performance. Created and refined project specifications to align with client requirements and industry standards. • Developed innovative machine learning solutions and computer vision models, significantly enhancing system performance and accuracy. • Contribute to the development of ML models and their integration into the product. Provide written and verbal communication on project progress and technical issues. • Regularly monitored the status of machine learning models and data pipelines, ensuring optimal performance and accuracy through continuous evaluation and fine-tuning. Education ________________________________________________________________________________________ Master of Science San Francisco Bay University Fremont, CA, USA 01/2024 - Present • Major in Computer Science (3.93 GPA) Bachelor of Science ITS Engineering College Greater Noida, India 05/2015 - 06/2019 • Major in Computer Science & Engineering (3.62 GPA) Projects __________________________________________________________________________________________ • WAFER SENSOR FAULT CLASSIFICATION: Predict the quality of the wafer whether good or bad based on the different sensor values for each wafer. A wafer is a thin semiconductor used in various electronic devices. Technology: Python, SQL, Machine learning, RandomForest Classifier, Data Validation, Preprocessing, K Means++ Clustering, Classification, Hyperparameter tuning. • HAND DETECTION-Shredder Machine: Detect the hands of the workers working with the shredder machine and stop the machine if hands come near the machine to prevent injury. Technology: Python, SQL, Tensorflow object detection framework-SSDlite • ANPR (Automatic Number Plate Recognition): Worked on end-to-end ANPR for NPCI , installed on Mumbai Marine Lines running on real time. ANPR is Automatic Number Plate Recognition system , Purpose for this Solution is to replace Fastag and convert all toll services with ANPR solution. Technology: Computer vision, Transfer learning, Deepstream, Docker, GCP, Yolo, Tracker, paddel, dbnet, OCR(CRNN, paddel OCR,tensorRT), ML-Flow, Python, OpenCV, Pandas. • VERINEXT(PondLehocky) on Project Legal-Case-Identification (LCI): LCI( Legal-Case-Identification) is a legal domain project , This Solution is for US legal firms to replace their Manual processes to assign case to suitable handling firm with Gen-AI solution with Littify DB. Technology: Gen-AI, NLP, GPT, Prompt engineering, LangChain, Authentication API , Litify, Deep learning Algo, AZURE-API. • FM QUOTATION REQUEST - OCR: A fully automated OCR model that takes input as a pdf or doc file scans it and retrieves information regarding quotation of the user for delivery and pick up details of requests and process it. Technology: Natural Language Processing, Spacy, NER, Data cleaning. • CONCRETE STRENGTH PREDICTION: A regression model to predict the concrete compressive strength based on quantity of different components of mixtures and cement. Technology: Python,SQL, Machine learning, XGboost Regressor, Data Validation, Preprocessing, Clustering, Hyperparameter tuning. • WEBSHOP-CUSTOMER REVIEWS SENTIMENTS: Classifies the reviews of all the customers visited in Web-Shop and gives the different sentiment analysis reports. Technology: NLP, Naive bayes, Support Vector machine, TFIDF, SQL. Mentorship _______________________________________________________________________________________ • Data Science Tutor: Programming | Data Science | Machine Learning | Data Visualization. Certificates ___________________________________________________________________________________________ • Oracle Cloud Infrastructure 2024 Generative AI Certified Professional. Link • Gold Badge (5 Star) for Python on HackerRank. Link • Data Scientist 1 year Master Professional Program. Link • Certificate of Training in MACHINE LEARNING Advance course. Link\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Starting the Resume create session. Type 'exit' to end the session.\n",
      "\n",
      "\n",
      "\n",
      "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
      "\u001b[32;1m\u001b[1;3m```markdown\n",
      "# Karan Shrestha\n",
      "[LinkedIn](LinkedIn) | 747-295-9996 | ks.karanshrestha@gmail.com | [GitHub](GitHub)\n",
      "\n",
      "## Summary\n",
      "\n",
      "Highly motivated and results-oriented Data Scientist with 4.5 years of experience specializing in Machine Learning, Natural Language Processing (NLP), Deep Learning, Generative AI, and Prompt Engineering. Proven ability to leverage data-driven insights to solve complex business problems, with a strong focus on building user-centric AI products. Expertise in Python, cloud computing (AWS), and MLOps, along with excellent communication and teamwork skills.  Passionate about exploring and identifying opportunities to improve customer experiences through innovative AI solutions.\n",
      "\n",
      "## Skills\n",
      "\n",
      "**Technical Skills:** Python, SQL, C#, TensorFlow, PyTorch, NumPy, NLTK, Pandas, Scikit-learn, Transformers, MXNet, Keras, Deep Learning, CNN, RNN, LSTM, Computer Vision, Anomaly Detection, AWS, JavaScript, REST API, LLMs (Large Language Models), Generative AI, Prompt Engineering, Fine-tuning, PySpark, GCP, Azure,  Statistics, Statistical Modeling, R, Neo4j\n",
      "\n",
      "**Soft/Leadership Skills:**  Problem-solving, Business Acumen, Analytical Skills, Strategic Planning, Communication (Written & Verbal), Teamwork, Time Management,  Product Vision, Cross-functional Collaboration, Data Visualization (Tableau, Power BI)\n",
      "\n",
      "\n",
      "## Experience\n",
      "\n",
      "**Senior Data Scientist, FreightMango, Gurgaon, India (06/2023 – 12/2023)**\n",
      "\n",
      "* Engineered an automated customer quotation document scanning pipeline using OCR and NLP, resulting in a 40% increase in customer acquisition.\n",
      "* Applied Machine Learning (ML) algorithms to optimize finance-related applications, improving the accuracy and efficiency of financial forecasting models.\n",
      "* Developed and maintained information systems for managing and processing large datasets for machine learning projects.\n",
      "* Conducted research on industry trends and applied findings to product innovation, driving the product vision and ensuring alignment with business goals.\n",
      "* Implemented networking protocols and ensured robust product security.\n",
      "* Collaborated with cross-functional teams to develop innovative solutions and improve core functionalities.\n",
      "* Managed social media campaigns, increasing engagement by 30% through targeted content strategies.\n",
      "\n",
      "**Software Engineer, DataNova, Noida, India (02/2019 - 06/2023)**\n",
      "\n",
      "* Developed and delivered pre-trained and fine-tuned neural network models using TensorFlow for internal projects, including object detection and automated chatbots using NLP.\n",
      "* Collaborated with cross-functional teams to deploy machine learning solutions, enhancing performance for perception tasks like object detection.\n",
      "* Developed predictive models using algorithms such as Kernel-KNN, Decision Trees, Random Forest, Gradient Boosting, SVMs, and XGBoost.\n",
      "* Conducted image annotation, text data cleaning, text vectorization, and data preprocessing for machine learning projects.\n",
      "* Created data visualizations to support data-driven decisions.\n",
      "* Contributed to the development of ML models and their integration into the product.\n",
      "* Regularly monitored and fine-tuned machine learning models and data pipelines to ensure optimal performance and accuracy.\n",
      "\n",
      "\n",
      "## Education\n",
      "\n",
      "**Master of Science in Computer Science (3.93 GPA), San Francisco Bay University, Fremont, CA, USA (01/2024 – Present)**\n",
      "\n",
      "**Bachelor of Science in Computer Science & Engineering (3.62 GPA), ITS Engineering College, Greater Noida, India (05/2015 - 06/2019)**\n",
      "\n",
      "\n",
      "## Projects\n",
      "\n",
      "* **Wafer Sensor Fault Classification:** Developed a machine learning model using Random Forest Classifier and K-Means++ Clustering to predict wafer quality based on sensor data.\n",
      "* **Hand Detection - Shredder Machine:** Implemented a real-time hand detection system using TensorFlow Object Detection framework (SSDlite) to prevent workplace injuries.\n",
      "* **ANPR (Automatic Number Plate Recognition):** Developed an end-to-end ANPR system for NPCI using computer vision, transfer learning, and deep learning techniques.\n",
      "* **Verinext (PondLehocky) on Project Legal-Case-Identification (LCI):** Developed a Gen-AI solution using NLP, GPT, and Prompt Engineering to automate legal case assignments.\n",
      "* **FM Quotation Request - OCR:** Built an automated OCR model using NLP and Spacy to extract information from quotation documents and streamline the request process.\n",
      "* **Concrete Strength Prediction:** Developed a regression model using XGBoost Regressor to predict concrete compressive strength based on mixture components.\n",
      "* **Webshop - Customer Reviews Sentiments:** Implemented a sentiment analysis model using NLP techniques to classify customer reviews and generate reports.\n",
      "\n",
      "## Mentorship\n",
      "\n",
      "* **Data Science Tutor:** Provided tutoring in Programming, Data Science, Machine Learning, and Data Visualization.\n",
      "\n",
      "## Certifications\n",
      "\n",
      "* **Oracle Cloud Infrastructure 2024 Generative AI Certified Professional:** [Link](Link)\n",
      "* **Gold Badge (5 Star) for Python on HackerRank:** [Link]\n",
      "* **Data Scientist 1-year Master Professional Program:** [Link]\n",
      "* **Certificate of Training in Machine Learning Advanced Course:** [Link]\n",
      "\n",
      "```\u001b[0m\n",
      "\n",
      "\u001b[1m> Finished chain.\u001b[0m\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "You:  exit\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Starting the Resume create session. Type 'exit' to end the session.\n",
      "\n",
      "Ending the conversation. Goodbye!\n",
      "File 'Agent_output\\Resume_20241117173459.md' created successfully.\n",
      "Resume saved to Agent_output\\Resume_20241117173459.md\n"
     ]
    },
    {
     "data": {
      "text/markdown": [
       "# Karan Shrestha\n",
       "[LinkedIn](LinkedIn) | 747-295-9996 | ks.karanshrestha@gmail.com | [GitHub](GitHub)\n",
       "\n",
       "## Summary\n",
       "\n",
       "Highly motivated and results-oriented Data Scientist with 4.5 years of experience specializing in Machine Learning, Natural Language Processing (NLP), Deep Learning, Generative AI, and Prompt Engineering. Proven ability to leverage data-driven insights to solve complex business problems, with a strong focus on building user-centric AI products. Expertise in Python, cloud computing (AWS), and MLOps, along with excellent communication and teamwork skills.  Passionate about exploring and identifying opportunities to improve customer experiences through innovative AI solutions.\n",
       "\n",
       "## Skills\n",
       "\n",
       "**Technical Skills:** Python, SQL, C#, TensorFlow, PyTorch, NumPy, NLTK, Pandas, Scikit-learn, Transformers, MXNet, Keras, Deep Learning, CNN, RNN, LSTM, Computer Vision, Anomaly Detection, AWS, JavaScript, REST API, LLMs (Large Language Models), Generative AI, Prompt Engineering, Fine-tuning, PySpark, GCP, Azure,  Statistics, Statistical Modeling, R, Neo4j\n",
       "\n",
       "**Soft/Leadership Skills:**  Problem-solving, Business Acumen, Analytical Skills, Strategic Planning, Communication (Written & Verbal), Teamwork, Time Management,  Product Vision, Cross-functional Collaboration, Data Visualization (Tableau, Power BI)\n",
       "\n",
       "\n",
       "## Experience\n",
       "\n",
       "**Senior Data Scientist, FreightMango, Gurgaon, India (06/2023 – 12/2023)**\n",
       "\n",
       "* Engineered an automated customer quotation document scanning pipeline using OCR and NLP, resulting in a 40% increase in customer acquisition.\n",
       "* Applied Machine Learning (ML) algorithms to optimize finance-related applications, improving the accuracy and efficiency of financial forecasting models.\n",
       "* Developed and maintained information systems for managing and processing large datasets for machine learning projects.\n",
       "* Conducted research on industry trends and applied findings to product innovation, driving the product vision and ensuring alignment with business goals.\n",
       "* Implemented networking protocols and ensured robust product security.\n",
       "* Collaborated with cross-functional teams to develop innovative solutions and improve core functionalities.\n",
       "* Managed social media campaigns, increasing engagement by 30% through targeted content strategies.\n",
       "\n",
       "**Software Engineer, DataNova, Noida, India (02/2019 - 06/2023)**\n",
       "\n",
       "* Developed and delivered pre-trained and fine-tuned neural network models using TensorFlow for internal projects, including object detection and automated chatbots using NLP.\n",
       "* Collaborated with cross-functional teams to deploy machine learning solutions, enhancing performance for perception tasks like object detection.\n",
       "* Developed predictive models using algorithms such as Kernel-KNN, Decision Trees, Random Forest, Gradient Boosting, SVMs, and XGBoost.\n",
       "* Conducted image annotation, text data cleaning, text vectorization, and data preprocessing for machine learning projects.\n",
       "* Created data visualizations to support data-driven decisions.\n",
       "* Contributed to the development of ML models and their integration into the product.\n",
       "* Regularly monitored and fine-tuned machine learning models and data pipelines to ensure optimal performance and accuracy.\n",
       "\n",
       "\n",
       "## Education\n",
       "\n",
       "**Master of Science in Computer Science (3.93 GPA), San Francisco Bay University, Fremont, CA, USA (01/2024 – Present)**\n",
       "\n",
       "**Bachelor of Science in Computer Science & Engineering (3.62 GPA), ITS Engineering College, Greater Noida, India (05/2015 - 06/2019)**\n",
       "\n",
       "\n",
       "## Projects\n",
       "\n",
       "* **Wafer Sensor Fault Classification:** Developed a machine learning model using Random Forest Classifier and K-Means++ Clustering to predict wafer quality based on sensor data.\n",
       "* **Hand Detection - Shredder Machine:** Implemented a real-time hand detection system using TensorFlow Object Detection framework (SSDlite) to prevent workplace injuries.\n",
       "* **ANPR (Automatic Number Plate Recognition):** Developed an end-to-end ANPR system for NPCI using computer vision, transfer learning, and deep learning techniques.\n",
       "* **Verinext (PondLehocky) on Project Legal-Case-Identification (LCI):** Developed a Gen-AI solution using NLP, GPT, and Prompt Engineering to automate legal case assignments.\n",
       "* **FM Quotation Request - OCR:** Built an automated OCR model using NLP and Spacy to extract information from quotation documents and streamline the request process.\n",
       "* **Concrete Strength Prediction:** Developed a regression model using XGBoost Regressor to predict concrete compressive strength based on mixture components.\n",
       "* **Webshop - Customer Reviews Sentiments:** Implemented a sentiment analysis model using NLP techniques to classify customer reviews and generate reports.\n",
       "\n",
       "## Mentorship\n",
       "\n",
       "* **Data Science Tutor:** Provided tutoring in Programming, Data Science, Machine Learning, and Data Visualization.\n",
       "\n",
       "## Certifications\n",
       "\n",
       "* **Oracle Cloud Infrastructure 2024 Generative AI Certified Professional:** [Link](Link)\n",
       "* **Gold Badge (5 Star) for Python on HackerRank:** [Link]\n",
       "* **Data Scientist 1-year Master Professional Program:** [Link]\n",
       "* **Certificate of Training in Machine Learning Advanced Course:** [Link]\n",
       "\n",
       "```"
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "{'category': '2\\n', 'response': 'Agent_output\\\\Resume_20241117173459.md'}"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "query = \"Can you help me to modify my resume based on job description\"\n",
    "result = run_user_query(query)\n",
    "result"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1032b1b8-641e-4fff-a816-a0254be1a4c1",
   "metadata": {},
   "source": [
    "## TEST CASE 6: Resume Making"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "id": "2e967ff9-f878-4eb8-ab33-a478ab5f0fcb",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Categorizing the customer query...\n",
      "Category: handle_resume_making\n",
      "\n",
      "Starting the Resume create session. Type 'exit' to end the session.\n",
      "\n",
      "\n",
      "\n",
      "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
      "\u001b[32;1m\u001b[1;3mI can definitely help you with that! To create a tailored resume for Generative AI roles, I need some information from you.  Could you please tell me about your technical skills related to AI/ML and Generative AI in particular?  For example, list specific programming languages, platforms, libraries, and tools you're proficient in (e.g., Python, TensorFlow, PyTorch, Transformers, LangChain, etc.).\n",
      "\u001b[0m\n",
      "\n",
      "\u001b[1m> Finished chain.\u001b[0m\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "You:  Skills ____________________________________________________________________________________________ • Python | SQL | C# | Tensorflow | Pytorch | Numpy | NLTK | Pandas | Natural Language Processing | Machine Learning| Database query | • Computer Vision | Transformers | MXNet | Deep Learning | Anomaly detection | Scikit-learn | CNN | RNN | LSTM -Neural networks | • AWS | JavaScript | REST API | LLMs-Large Language Models | Keras | Predictive Modeling | Generative AI | Prompt Engineering | Neo4j • Tableau | Power BI | Fine Tuning | Problem solving | Web Development | PySpark | GCP | Azure | Statistics | Statistical modeling | R\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Starting the Resume create session. Type 'exit' to end the session.\n",
      "\n",
      "\n",
      "\n",
      "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
      "\u001b[32;1m\u001b[1;3mGreat!  Now, please tell me about your work experience and projects, focusing on those relevant to Generative AI.  For each experience/project, please provide a brief description, highlighting your contributions and the technologies used.  If you have any publications or patents, please mention those as well.  If you're a fresh graduate or have no direct experience, describe relevant academic projects or coursework.\n",
      "\u001b[0m\n",
      "\n",
      "\u001b[1m> Finished chain.\u001b[0m\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "You:  Experience _______________________________________________________________________________________ Senior Data Scientist FreightMango Gurgaon, India 06/2023 – 12/2023 • Applied data preprocessing techniques, including data collection and cleaning, to prepare datasets for Machine learning models. • Tuned and optimized datasets through advanced data preprocessing techniques for machine learning models. • Engineered an automated customer quotation document scanning pipeline, boosting customer acquisition by 40%. • Drive the vision of the product, ensuring alignment with business goals. Implement networking protocols and ensure robust product security. Conducted research to identify industry trends, applying findings to product innovation. • Applied machine learning (ML) algorithms to optimize finance-related applications, enhancing the accuracy and efficiency of financial forecasting models.Software Engineer DataNova Noida, India 02/2019 - 06/2023 • Conducted image annotation, text data cleaning, text vectorization, manipulation, and data preprocessing for Machine learning projects. • Feature Engineering and created data visualizations to support data-driven decisions. Execute on design, build, analysis and validation of  data analytics, modeling, and machine learning techniques • In-depth expertise with a rich repertoire of Regression, Classification, Clustering, and Dimensionality reduction algorithms. • Delivered pre-trained and fine-tuned neural network models using TensorFlow for internal projects, including object detection and automated chatbots using NLP. • Collaborated with cross-functional teams to deploy machine learning solutions, enhancing performance for perception tasks like Object  Detection.  Projects __________________________________________________________________________________________ • WAFER SENSOR FAULT CLASSIFICATION: Predict the quality of the wafer whether good or bad based on the different sensor values for each wafer. A wafer is a thin semiconductor used in various electronic devices. Technology: Python, SQL, Machine learning, RandomForest Classifier, Data Validation, Preprocessing, K Means++ Clustering, Classification, Hyperparameter tuning. • HAND DETECTION-Shredder Machine: Detect the hands of the workers working with the shredder machine and stop the machine if hands come near the machine to prevent injury. Technology: Python, SQL, Tensorflow object detection framework-SSDlite • ANPR (Automatic Number Plate Recognition): Worked on end-to-end ANPR for NPCI , installed on Mumbai Marine Lines running on real time. ANPR is Automatic Number Plate Recognition system , Purpose for this Solution is to replace Fastag and convert all toll services with ANPR solution. Technology: Computer vision, Transfer learning, Deepstream, Docker, GCP, Yolo, Tracker, paddel, dbnet, OCR(CRNN, paddel OCR,tensorRT), ML-Flow, Python, OpenCV, Pandas. • VERINEXT(PondLehocky) on Project Legal-Case-Identification (LCI): LCI( Legal-Case-Identification) is a legal domain project , This Solution is for US legal firms to replace their Manual processes to assign case to suitable handling firm with Gen-AI solution with Littify DB. Technology: Gen-AI, NLP, GPT, Prompt engineering, LangChain, Authentication API , Litify, Deep learning Algo, AZURE-API.  \n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Starting the Resume create session. Type 'exit' to end the session.\n",
      "\n",
      "\n",
      "\n",
      "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
      "\u001b[32;1m\u001b[1;3mOkay, that's a good start.  Finally, could you please provide your education details (degrees, university, graduation dates), any relevant certifications (e.g., AWS Certified Machine Learning – Specialty), and your contact information (name, phone number, email, LinkedIn profile URL if you have one)?  You can replace your actual contact information with placeholders if you prefer not to share it here.\n",
      "\n",
      "\u001b[0m\n",
      "\n",
      "\u001b[1m> Finished chain.\u001b[0m\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "You:  Education ________________________________________________________________________________________ Master of Science San Francisco Bay University Fremont, CA, USA 01/2024 - Present • Major in Computer Science (3.93 GPA) Bachelor of Science ITS Engineering College Greater Noida, India 05/2015 - 06/2019 • Major in Computer Science & Engineering (3.62 GPA)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Starting the Resume create session. Type 'exit' to end the session.\n",
      "\n",
      "\n",
      "\n",
      "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
      "\u001b[32;1m\u001b[1;3m```markdown\n",
      "# [Your Name]\n",
      "[Phone Number] | [Email Address] | [LinkedIn Profile URL]\n",
      "\n",
      "## Summary\n",
      "\n",
      "Highly motivated and results-oriented AI Engineer with a proven track record in developing and deploying Generative AI solutions. Expertise in leveraging cutting-edge technologies like LLMs, Transformers, and Deep Learning to solve complex business problems. Passionate about building innovative and impactful AI-driven applications.\n",
      "\n",
      "## Skills\n",
      "\n",
      "**Programming Languages:** Python, SQL, C#, JavaScript, R\n",
      "**AI/ML Libraries & Frameworks:** TensorFlow, PyTorch, Keras, Scikit-learn, Transformers, LangChain, NLTK, Pandas, NumPy, MXNet\n",
      "**Cloud Platforms:** AWS, GCP, Azure\n",
      "**Databases:** SQL, Neo4j\n",
      "**Other Tools & Technologies:**  Computer Vision, CNN, RNN, LSTM, Natural Language Processing (NLP), Deep Learning, Predictive Modeling, Generative AI, Prompt Engineering, Fine-tuning, REST API, Tableau, Power BI, PySpark, Docker, Deepstream\n",
      "\n",
      "## Experience\n",
      "\n",
      "**Senior Data Scientist, FreightMango (Gurgaon, India)**  06/2023 – 12/2023\n",
      "* Engineered an automated customer quotation document scanning pipeline, boosting customer acquisition by 40%.\n",
      "* Applied data preprocessing techniques, including data collection and cleaning, to prepare datasets for Machine learning models.\n",
      "* Tuned and optimized datasets through advanced data preprocessing techniques for machine learning models.\n",
      "* Applied machine learning (ML) algorithms to optimize finance-related applications, enhancing the accuracy and efficiency of financial forecasting models.\n",
      "* Drove the product vision, ensuring alignment with business goals. Implemented networking protocols and ensured robust product security.\n",
      "* Conducted research to identify industry trends, applying findings to product innovation.\n",
      "\n",
      "\n",
      "**Software Engineer, DataNova (Noida, India)** 02/2019 - 06/2023\n",
      "* Conducted image annotation, text data cleaning, text vectorization, manipulation, and data preprocessing for Machine learning projects.\n",
      "* Feature Engineering and created data visualizations to support data-driven decisions. Executed design, build, analysis and validation of data analytics, modeling, and machine learning techniques.\n",
      "* In-depth expertise with a rich repertoire of Regression, Classification, Clustering, and Dimensionality reduction algorithms.\n",
      "* Delivered pre-trained and fine-tuned neural network models using TensorFlow for internal projects, including object detection and automated chatbots using NLP.\n",
      "* Collaborated with cross-functional teams to deploy machine learning solutions, enhancing performance for perception tasks like Object Detection.\n",
      "\n",
      "\n",
      "## Projects\n",
      "\n",
      "* **VERINEXT (PondLehocky) on Project Legal-Case-Identification (LCI):** Developed a Generative AI solution for US legal firms to automate case assignment using the Littify database.  Technologies: Gen-AI, NLP, GPT, Prompt engineering, LangChain, Authentication API, Litify, Deep learning algorithms, Azure API.\n",
      "* **ANPR (Automatic Number Plate Recognition):** Developed an end-to-end ANPR system for NPCI, deployed on Mumbai Marine Lines, running in real-time, to replace Fastag and convert toll services to ANPR. Technologies: Computer vision, Transfer learning, Deepstream, Docker, GCP, Yolo, Tracker, PaddleOCR, DBNet, OCR (CRNN, PaddleOCR, TensorRT), MLflow, Python, OpenCV, Pandas.\n",
      "* **HAND DETECTION-Shredder Machine:** Developed a hand detection system using TensorFlow Object Detection framework (SSDlite) to prevent injuries by stopping the shredder machine when hands come near. Technologies: Python, SQL, TensorFlow Object Detection framework-SSDlite.\n",
      "* **WAFER SENSOR FAULT CLASSIFICATION:** Developed a model to predict wafer quality based on sensor values. Technologies: Python, SQL, Machine learning, RandomForest Classifier, Data Validation, Preprocessing, K-Means++ Clustering, Classification, Hyperparameter tuning.\n",
      "\n",
      "## Education\n",
      "\n",
      "* **Master of Science in Computer Science,** San Francisco Bay University (Fremont, CA, USA)  01/2024 - Present (GPA: 3.93)\n",
      "* **Bachelor of Science in Computer Science & Engineering,** ITS Engineering College (Greater Noida, India) 05/2015 - 06/2019 (GPA: 3.62)\n",
      "\n",
      "\n",
      "```\n",
      "\u001b[0m\n",
      "\n",
      "\u001b[1m> Finished chain.\u001b[0m\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "You:  exit\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Starting the Resume create session. Type 'exit' to end the session.\n",
      "\n",
      "Ending the conversation. Goodbye!\n",
      "File 'Agent_output\\Resume_20241117162047.md' created successfully.\n",
      "Resume saved to Agent_output\\Resume_20241117162047.md\n"
     ]
    },
    {
     "data": {
      "text/markdown": [
       "# [Your Name]\n",
       "[Phone Number] | [Email Address] | [LinkedIn Profile URL]\n",
       "\n",
       "## Summary\n",
       "\n",
       "Highly motivated and results-oriented AI Engineer with a proven track record in developing and deploying Generative AI solutions. Expertise in leveraging cutting-edge technologies like LLMs, Transformers, and Deep Learning to solve complex business problems. Passionate about building innovative and impactful AI-driven applications.\n",
       "\n",
       "## Skills\n",
       "\n",
       "**Programming Languages:** Python, SQL, C#, JavaScript, R\n",
       "**AI/ML Libraries & Frameworks:** TensorFlow, PyTorch, Keras, Scikit-learn, Transformers, LangChain, NLTK, Pandas, NumPy, MXNet\n",
       "**Cloud Platforms:** AWS, GCP, Azure\n",
       "**Databases:** SQL, Neo4j\n",
       "**Other Tools & Technologies:**  Computer Vision, CNN, RNN, LSTM, Natural Language Processing (NLP), Deep Learning, Predictive Modeling, Generative AI, Prompt Engineering, Fine-tuning, REST API, Tableau, Power BI, PySpark, Docker, Deepstream\n",
       "\n",
       "## Experience\n",
       "\n",
       "**Senior Data Scientist, FreightMango (Gurgaon, India)**  06/2023 – 12/2023\n",
       "* Engineered an automated customer quotation document scanning pipeline, boosting customer acquisition by 40%.\n",
       "* Applied data preprocessing techniques, including data collection and cleaning, to prepare datasets for Machine learning models.\n",
       "* Tuned and optimized datasets through advanced data preprocessing techniques for machine learning models.\n",
       "* Applied machine learning (ML) algorithms to optimize finance-related applications, enhancing the accuracy and efficiency of financial forecasting models.\n",
       "* Drove the product vision, ensuring alignment with business goals. Implemented networking protocols and ensured robust product security.\n",
       "* Conducted research to identify industry trends, applying findings to product innovation.\n",
       "\n",
       "\n",
       "**Software Engineer, DataNova (Noida, India)** 02/2019 - 06/2023\n",
       "* Conducted image annotation, text data cleaning, text vectorization, manipulation, and data preprocessing for Machine learning projects.\n",
       "* Feature Engineering and created data visualizations to support data-driven decisions. Executed design, build, analysis and validation of data analytics, modeling, and machine learning techniques.\n",
       "* In-depth expertise with a rich repertoire of Regression, Classification, Clustering, and Dimensionality reduction algorithms.\n",
       "* Delivered pre-trained and fine-tuned neural network models using TensorFlow for internal projects, including object detection and automated chatbots using NLP.\n",
       "* Collaborated with cross-functional teams to deploy machine learning solutions, enhancing performance for perception tasks like Object Detection.\n",
       "\n",
       "\n",
       "## Projects\n",
       "\n",
       "* **VERINEXT (PondLehocky) on Project Legal-Case-Identification (LCI):** Developed a Generative AI solution for US legal firms to automate case assignment using the Littify database.  Technologies: Gen-AI, NLP, GPT, Prompt engineering, LangChain, Authentication API, Litify, Deep learning algorithms, Azure API.\n",
       "* **ANPR (Automatic Number Plate Recognition):** Developed an end-to-end ANPR system for NPCI, deployed on Mumbai Marine Lines, running in real-time, to replace Fastag and convert toll services to ANPR. Technologies: Computer vision, Transfer learning, Deepstream, Docker, GCP, Yolo, Tracker, PaddleOCR, DBNet, OCR (CRNN, PaddleOCR, TensorRT), MLflow, Python, OpenCV, Pandas.\n",
       "* **HAND DETECTION-Shredder Machine:** Developed a hand detection system using TensorFlow Object Detection framework (SSDlite) to prevent injuries by stopping the shredder machine when hands come near. Technologies: Python, SQL, TensorFlow Object Detection framework-SSDlite.\n",
       "* **WAFER SENSOR FAULT CLASSIFICATION:** Developed a model to predict wafer quality based on sensor values. Technologies: Python, SQL, Machine learning, RandomForest Classifier, Data Validation, Preprocessing, K-Means++ Clustering, Classification, Hyperparameter tuning.\n",
       "\n",
       "## Education\n",
       "\n",
       "* **Master of Science in Computer Science,** San Francisco Bay University (Fremont, CA, USA)  01/2024 - Present (GPA: 3.93)\n",
       "* **Bachelor of Science in Computer Science & Engineering,** ITS Engineering College (Greater Noida, India) 05/2015 - 06/2019 (GPA: 3.62)\n",
       "\n",
       "\n",
       "```"
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "{'category': '2\\n', 'response': 'Agent_output\\\\Resume_20241117162047.md'}"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "query = \"I want to make resume for Gen AI roles job.\"\n",
    "result = run_user_query(query)\n",
    "result"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "eeb9ed5d-b29f-4030-86fc-6dd2d4f7a8c8",
   "metadata": {},
   "source": [
    "## TEST CASE 7: Job Search"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "id": "fbe5815d-19d3-480e-81f8-2e4a97f47494",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Categorizing the customer query...\n",
      "Category: job_search\n"
     ]
    },
    {
     "name": "stdin",
     "output_type": "stream",
     "text": [
      "Please make sure to mention Job location you want,Job roles\n",
      " Find jobs in GenAI, AI Engineer roles, Location USA\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "File 'Agent_output\\Job_search_20241117172655.md' created successfully.\n",
      "Jobs saved to Agent_output\\Job_search_20241117172655.md\n"
     ]
    },
    {
     "data": {
      "text/markdown": [
       "# Generative AI Engineer Job Listings\n",
       "\n",
       "This document provides a curated list of job opportunities in the field of Generative AI.\n",
       "\n",
       "## Job Listings\n",
       "\n",
       "| Title                                                                                             | Company       | Location                 | Salary Range             | Description                                                                                                                                                                                                                            | Link                                                                                                        |\n",
       "|---------------------------------------------------------------------------------------------------|---------------|--------------------------|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n",
       "| Generative AI Engineer                                                                            | Cognizant     | Varies                  | Not specified           | Cognizant seeks an innovative Gen AI Engineer to develop cutting-edge, cloud-based software. Ideal candidates enjoy working in diverse, collaborative, geographically distributed teams and are expert engineers.                       | [Apply Here](https://careers.cognizant.com/global-en/jobs/00061676931/generative-ai-engineer/)             |\n",
       "| Staff Software Engineer, AI/ML GenAI, Gemini                                                       | Google        | US                      | $189,000-$284,000 + bonus + equity + benefits | Build a conversational AI tool that enables users to collaborate with generative AI, augmenting their imagination, expanding their curiosity, and enhancing their productivity.                                                       | [Apply Here](https://jobs.anitab.org/companies/google-24698/jobs/42530065-staff-software-engineer-ai-ml-genai-gemini) |\n",
       "| Staff Software Engineer, AI/ML GenAI, Google Cloud AI                                            | Google        | Sunnyvale, CA             | Not specified           | Join the Google Cloud AI team as a Staff Software Engineer, AI/ML GenAI. Salary ranges are determined by role, level, and location.                                                                                                       | [Apply Here](https://www.linkedin.com/jobs/view/staff-software-engineer-ai-ml-genai-google-cloud-ai-at-google-4074504841) |\n",
       "| Staff Software Engineer, AI/ML GenAI, Google Cloud AI                                            | Google        | Not specified           | Not specified           | Another listing for the same role at Google, potentially with different details.  Salary ranges are determined by role, level, and location.                                                                                              | [Apply Here](https://www.themuse.com/jobs/google/staff-software-engineer-aiml-genai-google-cloud-ai)        |\n",
       "\n",
       "\n",
       "This list is not exhaustive and may be updated periodically.  Please check the provided links for the most up-to-date information on each position."
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "{'category': '4\\n', 'response': 'Agent_output\\\\Job_search_20241117172655.md'}"
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "query = \"I want to search jobs.\"\n",
    "\n",
    "result = run_user_query(query)\n",
    "result"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "540f75df-ebf3-4bc3-b71d-17116524146f",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
